Browse Source

server Dockerfile

pull/1/head
David Ashby 1 month ago
parent
commit
a0b2bffcb3
  1. 8
      Dockerfile

8
Dockerfile

@ -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…
Cancel
Save