From 24645aea81c382154c7a01fd0349219b035223f7 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Tue, 26 Dec 2023 06:18:47 +0100 Subject: [PATCH] Add zoneinfo in the result image --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ea63b72..4993276 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS build LABEL authors="kbruen" LABEL org.opencontainers.image.source=https://github.com/dancojocaru2000/CfrTrainInfoTelegramBot +RUN apk add tzdata + RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories RUN apk add zig@testing COPY --from=xx / / @@ -25,6 +27,7 @@ RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_CFLAGS="-D_LARGEFILE64_SOURCE" CC="zig FROM scratch COPY --from=build /etc/ssl/certs /etc/ssl/certs +COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo WORKDIR /app # COPY static ./static/ COPY --from=build /app/server ./