try limit stuff to be copied from src.

reimplement reset hack
This commit is contained in:
Ulf Gebhardt 2022-01-25 18:27:02 +01:00
parent ed105b8e7c
commit ae84907f5c
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -98,8 +98,8 @@ COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
# COPY --from=build ${DOCKER_WORKDIR}/public ./public
# Copy package.json for script definitions (lock file should not be needed)
COPY --from=build ${DOCKER_WORKDIR}/package.json ./package.json
# TODO
COPY --from=build ${DOCKER_WORKDIR}/src ./src
# Copy Mnemonic files
COPY --from=build ${DOCKER_WORKDIR}/src/config/*.txt ./src/config/
# Copy run scripts run/
# COPY --from=build ${DOCKER_WORKDIR}/run ./run
@ -114,7 +114,8 @@ CMD /bin/sh -c "yarn run up"
##################################################################################
# PRODUCTION RESET ###############################################################
##################################################################################
FROM production as production_reset
# TODO this is a hack - wtf @mogge
#FROM production as production_reset
# Run command
CMD /bin/sh -c "yarn run reset"