diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index 550d1716b..5180e28a6 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -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