-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |