build(docker/backend): RUN --mount instead of late COPY [skip ci]

This commit is contained in:
Sarah Vaupel 2025-01-23 16:51:07 +01:00
parent 073ffb8483
commit 65ec7f0de5

View File

@ -46,8 +46,8 @@ RUN stack install yesod-bin
RUN stack install hpack
# pre-build dependencies
RUN make -- --dependencies-backend STACK_ROOT=${STACK_ROOT} IN_CONTAINER=true JOB=${JOB}
COPY . ${PROJECT_DIR}
RUN --mount=type=bind,source=.,target=${PROJECT_DIR} \
make -- --dependencies-backend STACK_ROOT=${STACK_ROOT} IN_CONTAINER=true JOB=${JOB}
# copy source files
#COPY app/ ${PROJECT_DIR}/app