From 7745071e63c8bf52aff7bdb55a6a6acd9070b593 Mon Sep 17 00:00:00 2001 From: Darren Clarke Date: Wed, 20 Aug 2025 12:58:03 +0200 Subject: [PATCH] fix: Update Dockerfiles to copy entire app directory for package dependencies Changed Dockerfiles for bridge-frontend, link, and leafcutter to copy the entire installer directory instead of selective copying. This ensures all workspace packages (including @link-stack/logger) are available at runtime, fixing the 'Cannot find package' error in Docker containers. --- apps/bridge-frontend/Dockerfile | 5 +---- apps/leafcutter/Dockerfile | 4 +--- apps/link/Dockerfile | 5 +---- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/apps/bridge-frontend/Dockerfile b/apps/bridge-frontend/Dockerfile index 25f7052..9d9eb26 100644 --- a/apps/bridge-frontend/Dockerfile +++ b/apps/bridge-frontend/Dockerfile @@ -34,10 +34,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ dumb-init RUN mkdir -p ${APP_DIR} WORKDIR ${APP_DIR} -COPY --from=installer ${APP_DIR}/node_modules/ ./node_modules/ -COPY --from=installer ${APP_DIR}/apps/bridge-frontend/ ./apps/bridge-frontend/ -COPY --from=installer ${APP_DIR}/apps/bridge-migrations/ ./apps/bridge-migrations/ -COPY --from=installer ${APP_DIR}/package.json ./package.json +COPY --from=installer ${APP_DIR} ./ RUN chown -R node:node ${APP_DIR}/ WORKDIR ${APP_DIR}/apps/bridge-frontend/ RUN chmod +x docker-entrypoint.sh diff --git a/apps/leafcutter/Dockerfile b/apps/leafcutter/Dockerfile index 9103384..99ee7b4 100644 --- a/apps/leafcutter/Dockerfile +++ b/apps/leafcutter/Dockerfile @@ -38,9 +38,7 @@ RUN chown -R node ${APP_DIR}/ USER node WORKDIR ${APP_DIR} -COPY --from=installer ${APP_DIR}/node_modules/ ./node_modules/ -COPY --from=installer ${APP_DIR}/apps/leafcutter/ ./apps/leafcutter/ -COPY --from=installer ${APP_DIR}/package.json ./package.json +COPY --from=installer ${APP_DIR} ./ USER root WORKDIR ${APP_DIR}/apps/leafcutter/ RUN chmod +x docker-entrypoint.sh diff --git a/apps/link/Dockerfile b/apps/link/Dockerfile index d894214..833a82a 100644 --- a/apps/link/Dockerfile +++ b/apps/link/Dockerfile @@ -38,10 +38,7 @@ RUN chown -R node ${APP_DIR}/ USER node WORKDIR ${APP_DIR} -COPY --from=installer ${APP_DIR}/node_modules/ ./node_modules/ -COPY --from=installer ${APP_DIR}/apps/link/ ./apps/link/ -COPY --from=installer ${APP_DIR}/apps/bridge-migrations/ ./apps/bridge-migrations/ -COPY --from=installer ${APP_DIR}/package.json ./package.json +COPY --from=installer ${APP_DIR} ./ USER root WORKDIR ${APP_DIR}/apps/link/ RUN chmod +x docker-entrypoint.sh