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.
This commit is contained in:
parent
57ddcd64ea
commit
7745071e63
3 changed files with 3 additions and 11 deletions
|
|
@ -34,10 +34,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||||
dumb-init
|
dumb-init
|
||||||
RUN mkdir -p ${APP_DIR}
|
RUN mkdir -p ${APP_DIR}
|
||||||
WORKDIR ${APP_DIR}
|
WORKDIR ${APP_DIR}
|
||||||
COPY --from=installer ${APP_DIR}/node_modules/ ./node_modules/
|
COPY --from=installer ${APP_DIR} ./
|
||||||
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
|
|
||||||
RUN chown -R node:node ${APP_DIR}/
|
RUN chown -R node:node ${APP_DIR}/
|
||||||
WORKDIR ${APP_DIR}/apps/bridge-frontend/
|
WORKDIR ${APP_DIR}/apps/bridge-frontend/
|
||||||
RUN chmod +x docker-entrypoint.sh
|
RUN chmod +x docker-entrypoint.sh
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,7 @@ RUN chown -R node ${APP_DIR}/
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
WORKDIR ${APP_DIR}
|
WORKDIR ${APP_DIR}
|
||||||
COPY --from=installer ${APP_DIR}/node_modules/ ./node_modules/
|
COPY --from=installer ${APP_DIR} ./
|
||||||
COPY --from=installer ${APP_DIR}/apps/leafcutter/ ./apps/leafcutter/
|
|
||||||
COPY --from=installer ${APP_DIR}/package.json ./package.json
|
|
||||||
USER root
|
USER root
|
||||||
WORKDIR ${APP_DIR}/apps/leafcutter/
|
WORKDIR ${APP_DIR}/apps/leafcutter/
|
||||||
RUN chmod +x docker-entrypoint.sh
|
RUN chmod +x docker-entrypoint.sh
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,7 @@ RUN chown -R node ${APP_DIR}/
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
WORKDIR ${APP_DIR}
|
WORKDIR ${APP_DIR}
|
||||||
COPY --from=installer ${APP_DIR}/node_modules/ ./node_modules/
|
COPY --from=installer ${APP_DIR} ./
|
||||||
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
|
|
||||||
USER root
|
USER root
|
||||||
WORKDIR ${APP_DIR}/apps/link/
|
WORKDIR ${APP_DIR}/apps/link/
|
||||||
RUN chmod +x docker-entrypoint.sh
|
RUN chmod +x docker-entrypoint.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue