build(docker/backend): add rw permissions for stack mounts [skip ci]
This commit is contained in:
parent
6895313887
commit
325f07feca
@ -39,11 +39,11 @@ ENV STACK_ROOT="${PROJECT_DIR}/.stack"
|
|||||||
WORKDIR ${PROJECT_DIR}
|
WORKDIR ${PROJECT_DIR}
|
||||||
ENV HOME=${PROJECT_DIR}
|
ENV HOME=${PROJECT_DIR}
|
||||||
|
|
||||||
RUN --mount=type=bind,source=.,target=. stack install yesod-bin
|
RUN --mount=type=bind,source=.,target=.,rw stack install yesod-bin
|
||||||
RUN --mount=type=bind,source=.,target=. stack install hpack
|
RUN --mount=type=bind,source=.,target=.,rw stack install hpack
|
||||||
|
|
||||||
# pre-build dependencies
|
# 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}
|
make -- --dependencies-backend STACK_ROOT=${STACK_ROOT} IN_CONTAINER=true JOB=${JOB}
|
||||||
|
|
||||||
# copy source files
|
# copy source files
|
||||||
|
|||||||
Reference in New Issue
Block a user