Skip to content

Commit 03b978a

Browse files
committed
chore: Update Dockerfile to remove project files before copying
1 parent c1640a2 commit 03b978a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Framework/gin/v1.10.0/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
FROM ghcr.io/labring-actions/devbox/go1.22.5:1e1bf3
1+
FROM ghcr.io/labring-actions/devbox/go-1.22.5:35bf93
22

3-
COPY /Framework/gin/v1.10.0/project /home/sealos/project
4-
5-
RUN chown -R sealos:sealos /home/sealos/project && \
6-
chmod -R u+rw /home/sealos/project
3+
RUN cd /home/sealos/project && \
4+
rm -rf ./*
75

86
USER sealos
7+
COPY /Framework/gin/v1.10.0/project /home/sealos/project
98
RUN cd /home/sealos/project && \
109
go mod tidy
1110

12-
USER root
1311
RUN mkdir /home/sealos/.sealos

0 commit comments

Comments
 (0)