Skip to content

Commit

Permalink
chore: Update gin Dockerfile to set proper permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Sep 11, 2024
1 parent 1f65f1f commit 23e9623
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Framework/gin/v1.10.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ FROM ghcr.io/labring-actions/devbox/go1.22.5:1e1bf3
COPY /Framework/gin/v1.10.0/project /home/sealos/project

RUN chown -R sealos:sealos /home/sealos/project && \
chmod -R u+rw /home/sealos/project && \
cd /home/sealos/project && \
chmod -R u+rw /home/sealos/project

USER sealos
RUN cd /home/sealos/project && \
go mod tidy

USER root
RUN mkdir /home/sealos/.sealos

0 comments on commit 23e9623

Please sign in to comment.