Skip to content

Commit

Permalink
fix(docker): build lib before client
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinTh committed Aug 31, 2024
1 parent 66adeb1 commit 9a2c4d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ logs
.env.*
!.env.example
.wrangler
dist
dist-*
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ RUN npm install -g pnpm --ignore-scripts && pnpm install --frozen-lockfile --ign
COPY . .

# Build the apps
RUN pnpm --filter @enclosed/app-client run build && pnpm --filter @enclosed/app-server run build:node
Run pnpm --filter @enclosed/lib run build && \
pnpm --filter @enclosed/app-client run build && \
pnpm --filter @enclosed/app-server run build:node

# Production image
FROM node:22-alpine
Expand Down

0 comments on commit 9a2c4d8

Please sign in to comment.