Skip to content

Commit

Permalink
fix(dockerfile.prod): fixed spacing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Eventyret committed May 24, 2023
1 parent d8d52ee commit 94d0b08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/Dockerfile-prod.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ RUN yarn config set network-timeout 600000 -g && yarn install --production
{%- else%}
COPY package.json package-lock.json ./
RUN npm config set network-timeout 600000 -g && npm install --only=production
{%endif%}
{%- endif%}
ENV PATH /opt/node_modules/.bin:$PATH
WORKDIR /opt/app
COPY . .
{%- if packageManager == "yarn" %}
RUN yarn build
{%- else%}
RUN npm run build
{%endif%}
{%-endif%}

# Creating final production image
FROM node:16-alpine
Expand All @@ -40,4 +40,4 @@ EXPOSE 1337
CMD ["yarn", "start"]
{%- else %}
CMD ["npm", "run","start"]
{%endif%}
{%-endif%}

0 comments on commit 94d0b08

Please sign in to comment.