Update Dockerfile

This commit is contained in:
esrrhs authored and GitHub committed 2024-08-14 15:04:03 +08:00
1 parent c0d95e7225
commit 5ff18e21fc
1 file changed
+3 -3
+3 -3
View File
@@ -2,14 +2,14 @@ FROM golang AS build-env
WORKDIR /app
COPY cmd/go.* ./
RUN ls -a
COPY go.* ./
RUN go mod download
COPY . ./
RUN ls -a
RUN go mod tidy
RUN go build -v -o pingtunnel
FROM debian
COPY --from=build-env /app/cmd/pingtunnel .
COPY --from=build-env /app/pingtunnel .
COPY GeoLite2-Country.mmdb .
WORKDIR ./