Create Dockerfile

This commit is contained in:
Erèbe - Romain Gerard
2022-03-24 21:38:55 +01:00
committed by GitHub
parent 3ea5e3c3a6
commit 262efda972

View File

@@ -0,0 +1,10 @@
FROM golang:1.16 AS build
COPY hello.go /go/src/project/hello.go
WORKDIR /go/src/project
RUN go build hello.go
FROM scratch
COPY --from=build /go/src/project/hello /bin/hello
ENTRYPOINT ["/bin/hello"]