periodicator/Dockerfile

19 lines
481 B
Docker
Raw Permalink Normal View History

FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine AS build
2021-09-27 17:52:19 +05:00
WORKDIR /go/src/go.dev.pztrn.name/periodicator
COPY . .
ENV CGO_ENABLED=0
RUN apk add make && make build
2021-09-27 17:52:19 +05:00
FROM code.pztrn.name/containers/mirror/alpine:3.16.0
2021-09-27 17:52:19 +05:00
LABEL maintainer="Stanislav N. <pztrn@pztrn.name>"
COPY --from=build /go/src/go.dev.pztrn.name/periodicator/periodicator /usr/local/bin/periodicator
RUN apk add tzdata
ENV GPT_CONFIG=/periodicator.yaml
ENTRYPOINT [ "/usr/local/bin/periodicator" ]