Skip to content

Commit

Permalink
docker: add init emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Mar 31, 2023
1 parent 2eb3bf6 commit 52a0b67
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ RUN apk --no-cache add ca-certificates libcap tzdata && \
mkdir -p /opt/adguardhome/conf /opt/adguardhome/work && \
chown -R nobody: /opt/adguardhome

RUN apk --no-cache add tini

ARG DIST_DIR
ARG TARGETARCH
ARG TARGETOS
Expand Down Expand Up @@ -62,11 +64,16 @@ COPY --chown=nobody:nogroup\
./${DIST_DIR}/docker/scripts\
/opt/adguardhome/scripts

ENTRYPOINT ["/opt/adguardhome/AdGuardHome"]
HEALTHCHECK \
--interval=30s \
--timeout=10s \
--retries=3 \
CMD [ "/opt/adguardhome/scripts/healthcheck.sh" ]

HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD [ "/opt/adguardhome/scripts/healthcheck.sh" ]
ENTRYPOINT [ "/sbin/tini", "--" ]

CMD [ \
"/opt/adguardhome/AdGuardHome", \
"--no-check-update", \
"-c", "/opt/adguardhome/conf/AdGuardHome.yaml", \
"-h", "0.0.0.0", \
Expand Down

0 comments on commit 52a0b67

Please sign in to comment.