Update Dockerfile

This commit is contained in:
Alexandre
2023-05-21 10:36:03 +02:00
committed by GitHub
parent 08e09aec7f
commit 738cba2977

View File

@@ -14,20 +14,19 @@
# 1 Build Image # # 1 Build Image #
################# #################
# Must be declared before first FROM
ARG BUILD_FROM ARG BUILD_FROM
# Get agent
FROM portainer/agent:alpine as original_agent FROM portainer/agent:alpine as original_agent
ENV PORTAINER_AGENT_ARGS="" ENV PORTAINER_AGENT_ARGS=""
# Build using base
FROM $BUILD_FROM FROM $BUILD_FROM
# Copy Portainer agent binaries # Copy Portainer agent binaries
COPY --from=original_agent /app /app COPY --from=original_agent /app /app
#RUN chmod a+x /usr/sbin/healthcheck && \
# chmod a+x /usr/sbin/wait-for-signal
ENTRYPOINT [ "/init" ]
################## ##################
# 2 Modify Image # # 2 Modify Image #
################## ##################
@@ -76,9 +75,8 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
# 4 Entrypoint # # 4 Entrypoint #
################ ################
#RUN chmod 777 /entrypoint.sh WORKDIR [ "/app" ]
#ENTRYPOINT [ "/usr/bin/env" ] ENTRYPOINT [ "/init" ]
#CMD [ "/entrypoint.sh" ]
############ ############
# 5 Labels # # 5 Labels #