From efc68f88bb53f3956c8a144867851d5cf355579d Mon Sep 17 00:00:00 2001 From: Oliver Braun Date: Fri, 27 Jun 2025 12:15:31 +0200 Subject: [PATCH] feat: working dockerfile --- .dockerignore | 1 + Dockerfile | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..191381e --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index cd60427..5066c4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,10 @@ RUN go get -d -v ./... && \ FROM alpine COPY --from=builder /app/plexams.go /app/plexams.go -RUN apk add wait4x + +RUN apk --no-cache add tzdata wait4x +ENV TZ=Europe/Berlin +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + EXPOSE 8080 ENTRYPOINT ["/app/plexams.go"] \ No newline at end of file