Skip to content

Commit

Permalink
Merge pull request #18 from SylivanKenobi/feature/rootless-image
Browse files Browse the repository at this point in the history
change file permissions, start as nobody
  • Loading branch information
daya0576 authored Nov 19, 2024
2 parents d144fc7 + f30596d commit 9d31ca2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ COPY start.sh .
COPY beaverhabits ./beaverhabits
COPY statics ./statics

RUN chmod -R g+w /app && \
chown -R nobody /app

USER nobody

CMD ["sh", "start.sh", "prd"]
5 changes: 5 additions & 0 deletions Dockerfile.buildkit.arm32
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ COPY start.sh .
COPY beaverhabits ./beaverhabits
COPY statics ./statics

RUN chmod -R g+w /app && \
chown -R nobody /app

USER nobody

CMD ["sh", "start.sh", "prd"]
5 changes: 5 additions & 0 deletions Dockerfile.nobuildkit.arm32
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ COPY start.sh .
COPY beaverhabits ./beaverhabits
COPY statics ./statics

RUN chmod -R g+w /app && \
chown -R nobody /app

USER nobody

CMD ["sh", "start.sh", "prd"]

0 comments on commit 9d31ca2

Please sign in to comment.