mirror of
https://github.com/costela/docker-etchosts.git
synced 2025-05-18 07:23:20 +02:00
21 lines
No EOL
267 B
Docker
21 lines
No EOL
267 B
Docker
FROM golang:1.13-alpine AS build
|
|
|
|
RUN apk add --update git
|
|
|
|
ENV CGO_ENABLED=0
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
COPY *.go /app/
|
|
|
|
RUN go build -v
|
|
|
|
FROM alpine
|
|
|
|
COPY --from=build /app/docker-etchosts /docker-etchosts
|
|
|
|
CMD [ "/docker-etchosts" ] |