gsave/Dockerfile

17 lines
229 B
Text
Raw Permalink Normal View History

2020-11-02 15:51:10 +01:00
FROM golang AS build
COPY ./go.* /src/
WORKDIR /src
RUN go mod download
COPY . /src
ENV CGO_ENABLED=0
2020-11-02 15:51:10 +01:00
RUN go build -o /gsave
FROM alpine
COPY --from=build /gsave /usr/bin/
2020-11-02 15:51:10 +01:00
ENTRYPOINT [ "gsave" ]
2020-11-02 15:51:10 +01:00
CMD [ "--quiet" ]
EXPOSE 8080