From e51fb204e010ec9fdef27f2d13b21e904ac68ddc Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Thu, 1 Jan 2026 16:46:54 +1100 Subject: [PATCH] Node modules wasnt copied over, and fixed issue with bun build by building each workspace individually --- .dockerignore | 2 +- Dockerfile | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 9692fc8..72db2c5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,4 @@ -node_modules +**/node_modules dist .git .gitignore diff --git a/Dockerfile b/Dockerfile index b74fa89..6cc3193 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,18 @@ COPY . . # ensuring the environment variables are set for the build if needed ENV NODE_ENV=production ENV PORT=3000 -RUN bun --filter "@torrent-client/shared" build -RUN bun --filter "@torrent-client/server" build -RUN bun --filter "@torrent-client/client" build +# Build packages individually by changing directory +WORKDIR /app/packages/shared +RUN bun run build + +WORKDIR /app/packages/server +RUN bun run build + +WORKDIR /app/packages/client +RUN bun run build + +# Reset working directory +WORKDIR /app # Expose the port (Dokku will override PORT env var, but 3000 is a good default documentation) EXPOSE 3000