build(docker/frontend): bind-mount project root to /tmp in Dockerfile

This commit is contained in:
Sarah Vaupel 2024-09-05 02:36:27 +02:00
parent a865f2f159
commit a96dc946a8

View File

@ -17,7 +17,9 @@ RUN n 20.17.0
ARG PROJECT_DIR=/fradrive
RUN mkdir -p ${PROJECT_DIR}
RUN cp -r /tmp${PROJECT_DIR}/* ${PROJECT_DIR}
RUN --mount=type=bind,source=.,target=/tmp${PROJECT_DIR} \
cp -r /tmp${PROJECT_DIR}/* ${PROJECT_DIR}
RUN chmod -R 777 ${PROJECT_DIR}
WORKDIR ${PROJECT_DIR}
ENV HOME=${PROJECT_DIR}