Skip to content

Commit b382d31

Browse files
committed
chore: Update Dockerfile to fix permissions and tidy go modules
1 parent 03b978a commit b382d31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Framework/gin/v1.10.0/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ FROM ghcr.io/labring-actions/devbox/go-1.22.5:35bf93
33
RUN cd /home/sealos/project && \
44
rm -rf ./*
55

6-
USER sealos
76
COPY /Framework/gin/v1.10.0/project /home/sealos/project
8-
RUN cd /home/sealos/project && \
7+
USER sealos
8+
RUN chown -R sealos:sealos /home/sealos/project && \
9+
chmod -R u+rw /home/sealos/project && \
10+
cd /home/sealos/project && \
911
go mod tidy
1012

1113
RUN mkdir /home/sealos/.sealos

0 commit comments

Comments
 (0)