diff --git a/docker/Dockerfile.worker b/docker/Dockerfile.worker index cd6b511..c14c82f 100644 --- a/docker/Dockerfile.worker +++ b/docker/Dockerfile.worker @@ -8,6 +8,9 @@ # Default to latest, but should pass in a version ARG APP_VERSION="latest" +# Set aside the actual app image so we can copy the app from there +FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS app_image + # Start with our base worker image FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest @@ -15,7 +18,7 @@ FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest ENV APP_VERSION=${APP_VERSION} # Copy the actual application code from the previously built app -COPY --chown=1000:1000 ./ /app +COPY --chown=1000:1000 --from=app_image /app /app # To retain backwards compatibility, default to async & download transports CMD [ "--async", "--download" ]