Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
twbworld committed Jan 8, 2024
1 parent 47b452f commit 3f5182b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ COPY go.mod go.sum ./
RUN apk add build-base && \
go mod download
COPY . .
RUN CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH go build -ldflags="-s -w" -o server . && \
RUN CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH go build -ldflags="-s -w" -installsuffix cgo -o server . && \
mv config/.env.example config/clash.ini server /app/static


##打包镜像
FROM --platform=$TARGETPLATFORM alpine
LABEL org.opencontainers.image.vendor="忐忑"
Expand Down

0 comments on commit 3f5182b

Please sign in to comment.