pingtunnel/Dockerfile
2023-02-22 21:36:00 +08:00

14 lines
206 B
Docker

FROM golang AS build-env
WORKDIR /app
COPY go.* ./
RUN go mod download
COPY . ./
RUN go build -v -o pingtunnel
FROM debian
COPY --from=build-env /app/pingtunnel .
COPY GeoLite2-Country.mmdb .
WORKDIR ./