File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -23,23 +23,25 @@ COPY ./templates ./templates
23
23
RUN npm install && \
24
24
npx tailwindcss -i ./static/css/input.css -o ./static/css/style.css --minify
25
25
26
- # Start from a complete image
27
- FROM alpine:latest as certs
28
- RUN apk -- update add ca-certificates
26
+ # Certificates and timezone data stage
27
+ FROM alpine:3.19 as certs
28
+ RUN apk update && apk add --no-cache ca-certificates tzdata
29
29
30
- # Final stage
30
+ # Start from a complete image and include timezone data
31
31
FROM scratch
32
32
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
33
+ # Include timezone data
34
+ COPY --from=certs /usr/share/zoneinfo /usr/share/zoneinfo
33
35
34
36
WORKDIR /app
35
37
COPY --from=builder /app/blogo /app/blogo
36
38
COPY --from=builder /app/articles /app/articles
37
-
38
- # Copy HTML files
39
39
COPY templates templates
40
40
COPY static static
41
-
42
41
COPY --from=node /app/static/css/style.css ./static/css/style.css
42
+
43
+ # Ensure the app uses the right timezone by setting the TZ environment variable
44
+ ENV TZ="Europe/Warsaw"
43
45
ENV PATH="/app:$PATH"
44
46
45
47
EXPOSE 3000
You can’t perform that action at this time.
0 commit comments