Skip to content

Dockerfile.den missing @openwork/email package — build fails #1804

@joelstucki-taulia

Description

@joelstucki-taulia

Summary

packaging/docker/Dockerfile.den does not copy or build the packages/email package, but den-api depends on @openwork/email at runtime. This causes the Cloud Build step to fail with a missing module error.

Steps to Reproduce

  1. Clone the repo
  2. Run gcloud builds submit (or docker build) using packaging/docker/Dockerfile.den
  3. Build fails during pnpm --dir /app/ee/apps/den-api run build

Fix

Add the following to Dockerfile.den (after the packages/types lines):

COPY packages/email/package.json /app/packages/email/package.json

And after the COPY packages/types line:

COPY packages/email /app/packages/email

And add a build step before den-db:

RUN pnpm --dir /app/packages/email run build

Environment

  • Cloud Run (Google Cloud)
  • Docker build via Cloud Build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions