mirror of
https://github.com/jlengrand/engine.git
synced 2026-03-10 08:11:21 +00:00
Create Dockerfile
This commit is contained in:
committed by
GitHub
parent
3ea5e3c3a6
commit
262efda972
10
tests/docker/multi_stage_simple/Dockerfile
Normal file
10
tests/docker/multi_stage_simple/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user