Skip to content

Commit 8e232fc

Browse files
author
Simen Daehlin
committed
fix(dockerfiles): fixed spacing issues
1 parent 27c23ba commit 8e232fc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

templates/Dockerfile-prod.liquid

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ WORKDIR /opt/
88
{%- if packageManager == "yarn" %}
99
COPY package.json yarn.lock ./
1010
RUN yarn config set network-timeout 600000 -g && yarn install --production
11-
{%- else%}
11+
{%- else %}
1212
COPY package.json package-lock.json ./
1313
RUN npm config set network-timeout 600000 -g && npm install --only=production
14-
{%- endif%}
14+
{%- endif %}
1515
ENV PATH /opt/node_modules/.bin:$PATH
1616
WORKDIR /opt/app
1717
COPY . .
1818
{%- if packageManager == "yarn" %}
1919
RUN yarn build
20-
{%- else%}
20+
{%- else %}
2121
RUN npm run build
22-
{%-endif%}
22+
{%- endif %}
2323

2424
# Creating final production image
2525
FROM node:16-alpine
@@ -39,5 +39,5 @@ EXPOSE 1337
3939
{%- if packageManager == "yarn" %}
4040
CMD ["yarn", "start"]
4141
{%- else %}
42-
CMD ["npm", "run","start"]
43-
{%-endif%}
42+
CMD ["npm", "run", "start"]
43+
{%- endif %}

templates/Dockerfile.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ COPY . .
2525
{%- if packageManager == "yarn" %}
2626
RUN ["yarn", "build"]
2727
{%- else %}
28-
RUN ["npm", "run","build"]
28+
RUN ["npm", "run", "build"]
2929
{%- endif %}
3030
EXPOSE 1337
3131
{%- if packageManager == "yarn" %}
3232
CMD ["yarn", "develop"]
3333
{%- else %}
34-
CMD ["npm", "run","develop"]
34+
CMD ["npm", "run", "develop"]
3535
{% endif %}

0 commit comments

Comments
 (0)