Skip to content

Commit

Permalink
fix(dockerfile.liquid): fixed an issue where copy after we chown
Browse files Browse the repository at this point in the history
Fixed an issue as we where copying after we chown a directory resulting in permission errors

Fix #80
  • Loading branch information
Eventyret committed May 26, 2023
1 parent 51ede71 commit 61c6a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/Dockerfile.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ RUN npm config set network-timeout 600000 -g && npm install
{%- endif %}

WORKDIR /opt/app
COPY . .
ENV PATH /opt/node_modules/.bin:$PATH
RUN chown -R strapi:strapi /opt/app
USER strapi
COPY . .
{%- if packageManager == "yarn" %}
RUN ["yarn", "build"]
{%- else %}
Expand Down

0 comments on commit 61c6a76

Please sign in to comment.