File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,18 +8,18 @@ WORKDIR /opt/
88{%- if packageManager == "yarn" %}
99COPY package.json yarn.lock ./
1010RUN yarn config set network-timeout 600000 -g && yarn install --production
11- {%- else %}
11+ {%- else %}
1212COPY package.json package-lock.json ./
1313RUN npm config set network-timeout 600000 -g && npm install --only=production
14- {%- endif %}
14+ {%- endif %}
1515ENV PATH /opt/node_modules/.bin:$PATH
1616WORKDIR /opt/app
1717COPY . .
1818{%- if packageManager == "yarn" %}
1919RUN yarn build
20- {%- else %}
20+ {%- else %}
2121RUN npm run build
22- {%-endif %}
22+ {%- endif %}
2323
2424# Creating final production image
2525FROM node:16-alpine
@@ -39,5 +39,5 @@ EXPOSE 1337
3939{%- if packageManager == "yarn" %}
4040CMD ["yarn", "start"]
4141{%- else %}
42- CMD ["npm", "run","start"]
43- {%-endif %}
42+ CMD ["npm", "run", "start"]
43+ {%- endif %}
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ COPY . .
2525{%- if packageManager == "yarn" %}
2626RUN ["yarn", "build"]
2727{%- else %}
28- RUN ["npm", "run","build"]
28+ RUN ["npm", "run", "build"]
2929{%- endif %}
3030EXPOSE 1337
3131{%- if packageManager == "yarn" %}
3232CMD ["yarn", "develop"]
3333{%- else %}
34- CMD ["npm", "run","develop"]
34+ CMD ["npm", "run", "develop"]
3535{% endif %}
You can’t perform that action at this time.
0 commit comments