feat(docker): add patches directory to Dockerfile for core and builder stages

- Included a new COPY command to transfer patches into the Docker image.
- Ensured that patches are available in both core and builder stages for application consistency.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-17 15:39:24 +08:00
parent 3fe81cc8e9
commit 05a83dadde

View File

@@ -12,6 +12,7 @@ COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
COPY be/apps/core/package.json be/apps/core/package.json
COPY be/apps/dashboard/package.json be/apps/dashboard/package.json
COPY apps/web/package.json apps/web/package.json
COPY patches/ ./patches/
RUN pnpm fetch --filter core...
RUN pnpm fetch --filter '@afilmory/web...'
@@ -51,6 +52,7 @@ ENV EXIFTOOL_PATH=/usr/local/bin/exiftool
COPY --from=builder /workspace/be/apps/core/dist ./dist
COPY --from=builder /workspace/be/packages/db/migrations ./migrations
COPY --from=builder /workspace/be/apps/core/docker-entrypoint.sh ./docker-entrypoint.sh
COPY --from=builder /workspace/patches/ ./patches/
RUN chmod +x ./docker-entrypoint.sh