Update Dockerfile

This commit is contained in:
esrrhs authored and GitHub committed 2024-08-14 14:52:36 +08:00
1 parent cd5e5acbf4
commit ff49e48149
1 file changed
+1 -3
+1 -3
View File
@@ -2,14 +2,12 @@ FROM golang AS build-env
WORKDIR /app
COPY * ./
COPY cmd/go.* ./
RUN ls -a
RUN go mod download
COPY . ./
RUN go mod tidy
RUN cd cmd
RUN go build -v -o pingtunnel
RUN cd ..
FROM debian
COPY --from=build-env /app/cmd/pingtunnel .