Skip to content

Commit 27c23ba

Browse files
author
Simen Daehlin
committed
fix(dockerfile): removed --production when installing dependencies
1 parent 753f75b commit 27c23ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/Dockerfile.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ ENV PATH /opt/node_modules/.bin:$PATH
1414
RUN chown -R strapi:strapi /opt/
1515
USER strapi{%- if packageManager == "yarn" %}
1616
COPY package.json yarn.lock ./
17-
RUN yarn config set network-timeout 600000 -g && yarn install --production
17+
RUN yarn config set network-timeout 600000 -g && yarn install
1818
{%- else %}
1919
COPY package.json package-lock.json ./
20-
RUN npm config set network-timeout 600000 -g && npm install --only=production
20+
RUN npm config set network-timeout 600000 -g && npm install
2121
{%- endif %}
2222

2323
WORKDIR /opt/app

0 commit comments

Comments
 (0)