Moving Dockerfile, multistage build
This commit is contained in:
parent
8c595faa27
commit
d3a801ac6c
@ -1,7 +1,7 @@
|
||||
FROM golang:alpine AS build
|
||||
|
||||
WORKDIR /root/
|
||||
COPY * /root/
|
||||
COPY . /root/
|
||||
RUN go build -o /root/matrix-handler cmd/svr/main.go
|
||||
|
||||
FROM scratch
|
||||
|
Loading…
Reference in New Issue
Block a user