14 lines
206 B
Docker
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 ./
|