mirror of
https://github.com/cooperspencer/gickup.git
synced 2026-10-21 05:20:08 +00:00
Adds tzdata to enable setting time zone in cron specifier
This enables setting the timezone in the cron specifier, e.g. ```yaml cron: TZ=America/New_York 0 2 * * * ``` Without this package's data, you'll get an error: ``` 2021-12-17 04:08:35 ERR provided bad location America/New_York: unknown time zone America/New_York spec="TZ=America/New_York 0 2 * * *" ```
This commit is contained in:
+2
-1
@@ -1,6 +1,6 @@
|
||||
FROM golang:alpine as builder
|
||||
|
||||
RUN apk add -U --no-cache ca-certificates
|
||||
RUN apk add -U --no-cache ca-certificates tzdata
|
||||
|
||||
WORKDIR /go/src/github.com/cooperspencer/gickup
|
||||
COPY . .
|
||||
@@ -12,4 +12,5 @@ FROM scratch as production
|
||||
WORKDIR /
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /go/src/github.com/cooperspencer/gickup/app /gickup/app
|
||||
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
CMD ["./gickup/app"]
|
||||
|
||||
Reference in New Issue
Block a user