library/Dockerfile
2022-01-15 15:51:06 -05:00

8 lines
158 B
Docker

FROM golang:1.17
WORKDIR /src
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/serve
FROM scratch
COPY --from=0 /src/server ./
CMD ["/server"]