Moving Dockerfile, multistage build
This commit is contained in:
1 parent
128ee5d5a7
commit
8c595faa27
2 files changed
+9
-6
No files matched your search
@@ -0,0 +1,9 @@
|
||||
FROM golang:alpine AS build
|
||||
|
||||
WORKDIR /root/
|
||||
COPY * /root/
|
||||
RUN go build -o /root/matrix-handler cmd/svr/main.go
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build /root/matrix-handler /bin/matrix-handler
|
||||
ENTRYPOINT ["/bin/matrix-handler"]
|
||||
Reference in new issue
Block a user