server Dockerfile
This commit is contained in:
parent
d0ddad01fa
commit
a0b2bffcb3
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM golang:1.16
|
||||||
|
WORKDIR /src
|
||||||
|
COPY . ./
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/serve
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=0 /src/server ./
|
||||||
|
CMD ["/server"]
|
Loading…
Reference in New Issue
Block a user