build(docker/backend): RUN --mount instead of late COPY [skip ci]
This commit is contained in:
parent
073ffb8483
commit
65ec7f0de5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user