gsave/Dockerfile
Augusto Dwenger efb9d7aace Change docker base image to alpine
It reduces the image by >100MB.
2020-11-03 15:32:49 +01:00

17 lines
No EOL
229 B
Docker

FROM golang AS build
COPY ./go.* /src/
WORKDIR /src
RUN go mod download
COPY . /src
ENV CGO_ENABLED=0
RUN go build -o /gsave
FROM alpine
COPY --from=build /gsave /usr/bin/
ENTRYPOINT [ "gsave" ]
CMD [ "--quiet" ]
EXPOSE 8080