This commit is contained in:
Alexandre
2023-05-20 21:39:00 +02:00
parent a53fca1f1a
commit cfa6e80301
3 changed files with 18 additions and 8 deletions

View File

@@ -14,9 +14,22 @@
# 1 Build Image #
#################
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.0.0
FROM portainer/agent:2.6.3 as agent
ARG BUILD_FROM
FROM ${BUILD_FROM}
ENV PORTAINER_AGENT_ARGS=""
ENV FIRST_HEALTHCHECK_TIMEOUT=20
# Copy Portainer agent binaries
COPY --from=agent / /
RUN chmod a+x /usr/sbin/healthcheck && \
chmod a+x /usr/sbin/wait-for-signal
ENTRYPOINT [ "/init" ]
##################
# 2 Modify Image #
##################
@@ -26,9 +39,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0
# Set shell
SHELL ["/usr/bin/env bash", "-o", "pipefail", "-c"]
##################
# 3 Install apps #
##################