diff --git a/portainer/Dockerfile b/portainer/Dockerfile index 1f8130c6a..63e897df5 100644 --- a/portainer/Dockerfile +++ b/portainer/Dockerfile @@ -7,9 +7,6 @@ ARG BUILD_UPSTREAM="2.9.3" SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Setup base -RUN \ - apk add --no-cache \ - nginx || true ARG BUILD_ARCH RUN \ @@ -22,6 +19,10 @@ RUN \ "https://github.com/portainer/portainer/releases/download/${BUILD_UPSTREAM}/portainer-${BUILD_UPSTREAM}-linux-${ARCH}.tar.gz" \ | tar zxvf - -C /opt/ +RUN \ + apk add --no-cache \ + nginx || true + # Copy root filesystem COPY rootfs /