timezone in docker image

This commit is contained in:
Joerg Lehmann 2022-12-28 17:13:11 +01:00
parent 65fd72e1ea
commit 0fe3232a76
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ ADD go.mod .
COPY . . COPY . .
RUN go build RUN go build
FROM alpine FROM alpine
RUN apk add --no-cache tzdata
ENV TZ=Europe/Zurich
WORKDIR /build WORKDIR /build
COPY --from=builder /build/wo-bisch-lorahandler /build/wo-bisch-lorahandler COPY --from=builder /build/wo-bisch-lorahandler /build/wo-bisch-lorahandler
CMD ["./wo-bisch-lorahandler"] CMD ["./wo-bisch-lorahandler"]