Skip to content

Commit

Permalink
fix(dockerfile): removed --production when installing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Eventyret committed May 24, 2023
1 parent 753f75b commit 27c23ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/Dockerfile.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ ENV PATH /opt/node_modules/.bin:$PATH
RUN chown -R strapi:strapi /opt/
USER strapi{%- if packageManager == "yarn" %}
COPY package.json yarn.lock ./
RUN yarn config set network-timeout 600000 -g && yarn install --production
RUN yarn config set network-timeout 600000 -g && yarn install
{%- else %}
COPY package.json package-lock.json ./
RUN npm config set network-timeout 600000 -g && npm install --only=production
RUN npm config set network-timeout 600000 -g && npm install
{%- endif %}

WORKDIR /opt/app
Expand Down

0 comments on commit 27c23ba

Please sign in to comment.