fix(Scheduler): copy from app image

This commit is contained in:
Brock H Caldwell
2025-11-04 20:08:43 -06:00
parent d90b4d7863
commit 9a0e7fce26

View File

@@ -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 [ "--monitor" ]