Skip to content

Commit

Permalink
chore: Update Dockerfile to remove project files before copying
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Sep 11, 2024
1 parent c1640a2 commit 03b978a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Framework/gin/v1.10.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
FROM ghcr.io/labring-actions/devbox/go1.22.5:1e1bf3
FROM ghcr.io/labring-actions/devbox/go-1.22.5:35bf93

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
RUN cd /home/sealos/project && \
rm -rf ./*

USER sealos
COPY /Framework/gin/v1.10.0/project /home/sealos/project
RUN cd /home/sealos/project && \
go mod tidy

USER root
RUN mkdir /home/sealos/.sealos

0 comments on commit 03b978a

Please sign in to comment.