From 527200abe7469ac24ea15da21f8b7f71441e6c44 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Wed, 13 Sep 2023 16:28:19 +0200 Subject: [PATCH] fixed timezone in container --- Dockerfile | 6 +++--- docker-compose.yml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index adedbe9..79e82aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,14 +6,14 @@ WORKDIR /app ARG TARGETARCH ARG TARGETOS -RUN apk add --no-cache make ca-certificates +RUN apk add --no-cache make RUN make build BUILD_ARCH="$TARGETARCH" BUILD_OS="$TARGETOS" FROM --platform=$TARGETPLATFORM alpine:latest - + WORKDIR /data -COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +RUN apk add --no-cache tzdata ca-certificates COPY --from=build /app/build/morningalarm /app/morningalarm diff --git a/docker-compose.yml b/docker-compose.yml index f7f7545..db1707a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: - SPOTIFY_DEVICE_ID=deviceID - SPOTIFY_PLAYLIST_ID=0MJBni0UzdnML1amikx0Rc - SPOTIFY_REDIRECT_URL=http://localhost:3000 + - TZ=Europe/Berlin volumes: - ./data:/data ports: