Skip to content

Commit

Permalink
add tzdata to image (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito authored Jan 5, 2024
1 parent 4189899 commit 680989b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.21-bullseye as builder
WORKDIR /go/src/app

RUN apt-get update && \
apt-get install -y upx ca-certificates && \
apt-get install -y upx ca-certificates tzdata && \
apt-get upgrade -y # upgrade to get latest ca-certs

ARG VERSION=main
Expand All @@ -26,6 +26,7 @@ LABEL maintainer="bakito <[email protected]>"
EXPOSE 8080
ENTRYPOINT ["/opt/go/adguardhome-sync"]
CMD ["run", "--config", "/config/adguardhome-sync.yaml"]
COPY --from=builder /go/src/app/adguardhome-sync /opt/go/adguardhome-sync
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /usr/share/zoneinfo/ /usr/share/zoneinfo/
COPY --from=builder /go/src/app/adguardhome-sync /opt/go/adguardhome-sync
USER 1001

0 comments on commit 680989b

Please sign in to comment.