library/Dockerfile

8 lines
158 B
Docker
Raw Normal View History

2021-08-08 14:01:20 +00:00
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"]