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
|
RUN stack install hpack
|
||||||
|
|
||||||
# pre-build dependencies
|
# pre-build dependencies
|
||||||
RUN make -- --dependencies-backend STACK_ROOT=${STACK_ROOT} IN_CONTAINER=true JOB=${JOB}
|
RUN --mount=type=bind,source=.,target=${PROJECT_DIR} \
|
||||||
COPY . ${PROJECT_DIR}
|
make -- --dependencies-backend STACK_ROOT=${STACK_ROOT} IN_CONTAINER=true JOB=${JOB}
|
||||||
|
|
||||||
# copy source files
|
# copy source files
|
||||||
#COPY app/ ${PROJECT_DIR}/app
|
#COPY app/ ${PROJECT_DIR}/app
|
||||||
|
|||||||
Reference in New Issue
Block a user