2023-02-22 16:29:12 +03:00
|
|
|
FROM golang AS build-env
|
|
|
|
|
2023-02-22 16:36:00 +03:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY go.* ./
|
|
|
|
RUN go mod download
|
|
|
|
COPY . ./
|
|
|
|
RUN go build -v -o pingtunnel
|
2023-02-22 16:29:12 +03:00
|
|
|
|
|
|
|
FROM debian
|
2023-02-22 16:36:00 +03:00
|
|
|
COPY --from=build-env /app/pingtunnel .
|
2023-02-22 16:29:12 +03:00
|
|
|
COPY GeoLite2-Country.mmdb .
|
|
|
|
WORKDIR ./
|