awesome-compose/samples/nginx-gohttp_1/Dockerfile
Anca Iordache 4a619921b9 Compose app skeletons
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
2020-02-13 14:14:36 +01:00

12 lines
246 B
Docker

FROM golang:1.13 AS builder
WORKDIR /compose/hello-docker
COPY main.go main.go
RUN CGO_ENABLED=0 go build -o backend main.go
FROM scratch
COPY --from=builder /compose/hello-docker/backend /usr/local/bin/backend
CMD ["/usr/local/bin/backend"]