build(docker/backend): add rw permissions for stack mounts [skip ci]

This commit is contained in:
Sarah Vaupel 2025-01-23 17:20:42 +01:00
parent 6895313887
commit 325f07feca

View File

@ -39,11 +39,11 @@ ENV STACK_ROOT="${PROJECT_DIR}/.stack"
WORKDIR ${PROJECT_DIR}
ENV HOME=${PROJECT_DIR}
RUN --mount=type=bind,source=.,target=. stack install yesod-bin
RUN --mount=type=bind,source=.,target=. stack install hpack
RUN --mount=type=bind,source=.,target=.,rw stack install yesod-bin
RUN --mount=type=bind,source=.,target=.,rw stack install hpack
# pre-build dependencies
RUN --mount=type=bind,source=.,target=. \
RUN --mount=type=bind,source=.,target=.,rw \
make -- --dependencies-backend STACK_ROOT=${STACK_ROOT} IN_CONTAINER=true JOB=${JOB}
# copy source files