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 03c415a
Show file tree
Hide file tree
Showing 2 changed files with 3 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-*
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ 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 03c415a

Please sign in to comment.