Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
fix: strapi user instead of root
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite authored Aug 4, 2022
1 parent 6fa4c42 commit 1c1e954
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion back-strapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RUN yarn build

EXPOSE 1337

RUN chown -R 1001 /app/public
RUN adduser --uid 1001 strapi && \
chown -R strapi:strapi /app
USER 1001


Expand Down

0 comments on commit 1c1e954

Please sign in to comment.