2021-09-27 17:52:19 +05:00
|
|
|
FROM golang:1.17.1-alpine AS build
|
|
|
|
|
|
|
|
WORKDIR /go/src/go.dev.pztrn.name/periodicator
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
ENV CGO_ENABLED=0
|
2021-09-28 08:35:03 +05:00
|
|
|
RUN apk add make && make build
|
2021-09-27 17:52:19 +05:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
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" ]
|