fix(tz): add tzdata to docker image
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Evan Reichard 2024-04-06 09:39:04 -04:00
parent 2d206826d6
commit a7ecb1a6f8
2 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
# Certificate Store # Certificates & Timezones
FROM alpine AS certs FROM alpine AS alpine
RUN apk update && apk add ca-certificates RUN apk update && apk add --no-cache ca-certificates tzdata
# Build Image # Build Image
FROM golang:1.21 AS build FROM golang:1.21 AS build
@ -19,7 +19,8 @@ RUN go build \
# Create Image # Create Image
FROM busybox:1.36 FROM busybox:1.36
COPY --from=certs /etc/ssl/certs /etc/ssl/certs COPY --from=alpine /etc/ssl/certs /etc/ssl/certs
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=build /opt/antholume /opt/antholume COPY --from=build /opt/antholume /opt/antholume
WORKDIR /opt/antholume WORKDIR /opt/antholume
EXPOSE 8585 EXPOSE 8585

View File

@ -1,6 +1,6 @@
# Certificate Store # Certificates & Timezones
FROM alpine AS certs FROM alpine AS alpine
RUN apk update && apk add ca-certificates RUN apk update && apk add --no-cache ca-certificates tzdata
# Build Image # Build Image
FROM --platform=$BUILDPLATFORM golang:1.21 AS build FROM --platform=$BUILDPLATFORM golang:1.21 AS build
@ -21,7 +21,8 @@ RUN --mount=target=. \
# Create Image # Create Image
FROM busybox:1.36 FROM busybox:1.36
COPY --from=certs /etc/ssl/certs /etc/ssl/certs COPY --from=alpine /etc/ssl/certs /etc/ssl/certs
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=build /opt/antholume /opt/antholume COPY --from=build /opt/antholume /opt/antholume
WORKDIR /opt/antholume WORKDIR /opt/antholume
EXPOSE 8585 EXPOSE 8585