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