fixed timezone in container

This commit is contained in:
Niklas Kapelle 2023-09-13 16:28:19 +02:00
parent e650bde5a5
commit 527200abe7
Signed by: niklas
GPG Key ID: 4EB651B36D841D16
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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: