Merge pull request #64 from esrrhs/esrrhs-patch-1

Update Dockerfile
This commit is contained in:
esrrhs authored and GitHub committed 2024-08-14 14:53:01 +08:00
commit c0d95e7225
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 .