goStatic/Dockerfile
Pierre Zemb 6f5dcaead9
fix #16: Base image centurylink/ca-certs is outdated (3 years old)
As we dropped HTTPS support, we can remove ca-certs and ldflags I guess
2018-09-02 19:40:49 +00:00

11 lines
No EOL
302 B
Docker

# stage 0
FROM golang:latest as builder
WORKDIR /go/src/github.com/PierreZ/goStatic
COPY . .
RUN CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -tags netgo -installsuffix netgo
# stage 1
FROM scratch
WORKDIR /
COPY --from=builder /go/src/github.com/PierreZ/goStatic/goStatic .
ENTRYPOINT ["/goStatic"]