static-file-server/Dockerfile
2017-06-23 07:28:11 -07:00

9 lines
174 B
Docker

FROM golang:latest as builder
COPY serve.go /
WORKDIR /
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o serve .
FROM scratch
COPY --from=builder /serve /
CMD ["/serve"]