Skip to content

Commit

Permalink
fix: fix missing packages build in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulike committed Sep 2, 2024
1 parent 1c83f51 commit 8443378
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ WORKDIR /website
COPY . .
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm config set store-dir /pnpm/store && \
pnpm install --prefer-offline --frozen-lockfile
pnpm install --prefer-offline --frozen-lockfile && \
pnpm build:packages

# Build blog
FROM deps AS blog-builder
Expand All @@ -35,4 +36,4 @@ FROM base AS admin
COPY --from=admin-builder /admin /admin
WORKDIR /admin
EXPOSE 3000
CMD pnpm start
CMD pnpm start

0 comments on commit 8443378

Please sign in to comment.