Skip to content

Commit

Permalink
ci(Dockerfile): Added ENV default for ZONEINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
michealroberts committed May 7, 2022
1 parent 99a8226 commit 7f40eb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o app
# Moving the binary to the 'final Image' to make it smaller
FROM alpine:latest

WORKDIR /app

COPY --from=build /go/src/nocturnal/app .

# The time zone database needed by LoadLocation may not be present on all systems, especially
# non-Unix systems. LoadLocation looks in the directory or uncompressed zip file named by the
# ZONEINFO environment variable, if any, then looks in known installation locations on Unix
# systems, and finally looks in $GOROOT/lib/time/zoneinfo.zip.
ADD https://github.com/golang/go/raw/master/lib/time/zoneinfo.zip /zoneinfo.zip

ENV ZONEINFO /zoneinfo.zip
ENV ZONEINFO=/zoneinfo.zip

WORKDIR /app

COPY --from=build /go/src/nocturnal/app .

0 comments on commit 7f40eb6

Please sign in to comment.