File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,18 @@ WORKDIR /opt/
8
8
{%- if packageManager == "yarn" %}
9
9
COPY package.json yarn.lock ./
10
10
RUN yarn config set network-timeout 600000 -g && yarn install --production
11
- {%- else %}
11
+ {%- else %}
12
12
COPY package.json package-lock.json ./
13
13
RUN npm config set network-timeout 600000 -g && npm install --only=production
14
- {%- endif %}
14
+ {%- endif %}
15
15
ENV PATH /opt/node_modules/.bin:$PATH
16
16
WORKDIR /opt/app
17
17
COPY . .
18
18
{%- if packageManager == "yarn" %}
19
19
RUN yarn build
20
- {%- else %}
20
+ {%- else %}
21
21
RUN npm run build
22
- {%-endif %}
22
+ {%- endif %}
23
23
24
24
# Creating final production image
25
25
FROM node:16-alpine
@@ -39,5 +39,5 @@ EXPOSE 1337
39
39
{%- if packageManager == "yarn" %}
40
40
CMD ["yarn", "start"]
41
41
{%- 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 . .
25
25
{%- if packageManager == "yarn" %}
26
26
RUN ["yarn", "build"]
27
27
{%- else %}
28
- RUN ["npm", "run","build"]
28
+ RUN ["npm", "run", "build"]
29
29
{%- endif %}
30
30
EXPOSE 1337
31
31
{%- if packageManager == "yarn" %}
32
32
CMD ["yarn", "develop"]
33
33
{%- else %}
34
- CMD ["npm", "run","develop"]
34
+ CMD ["npm", "run", "develop"]
35
35
{% endif %}
You can’t perform that action at this time.
0 commit comments