Update Dockerfile

This commit is contained in:
Alexandre
2025-12-30 12:31:45 +01:00
committed by GitHub
parent 72549986f1
commit 7de70a2066

View File

@@ -22,7 +22,7 @@ RUN rm -rf /usr/lib/bashio /usr/bin/bashio && \
rm -rf /tmp/bashio /tmp/bashio.tar.gz
# Step 2: Get agent from official image
COPY --from=ghcr.io/portainerci/agent:latest /app /app
COPY --from=FROM portainer/agent:alpine /app /app
# Step 3: Add tzdata and timezone support
RUN apk add --no-cache tzdata
@@ -35,7 +35,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_SERVICES_GRACETIME=0
# Step 5: Copy rootfs from official image
COPY --from=ghcr.io/portainerci/agent:latest / /
COPY --from=FROM portainer/agent:alpine / /
# Step 6: Override the run script with simplified protection mode check
RUN mkdir -p /etc/services.d/portainer_agent