Browse Source

Add zoneinfo in the result image

master
Kenneth Bruen 11 months ago
parent
commit
24645aea81
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 3
      Dockerfile

3
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 ./

Loading…
Cancel
Save