Skip to content

Commit 5ec3457

Browse files
committed
chore(api): enable pnpm and copy source code to runner for dev-mode execution
1 parent ce58b73 commit 5ec3457

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/api/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ FROM node:22-alpine AS runner
2727

2828
WORKDIR /app
2929

30+
RUN corepack enable && corepack prepare pnpm@10.6.5 --activate
31+
3032
RUN addgroup --system --gid 1001 nodejs && \
3133
adduser --system --uid 1001 fastify
3234

3335
USER fastify
3436

3537
COPY --from=builder --chown=fastify:nodejs /app/node_modules ./node_modules
36-
COPY --from=builder --chown=fastify:nodejs /app/apps/api/node_modules ./apps/api/node_modules
38+
COPY --from=builder --chown=fastify:nodejs /app/apps/api ./apps/api
3739
COPY --from=builder --chown=fastify:nodejs /app/packages ./packages
38-
COPY --from=builder --chown=fastify:nodejs /app/apps/api/dist ./apps/api/dist
39-
COPY --from=builder --chown=fastify:nodejs /app/apps/api/package.json ./apps/api/package.json
4040

4141
ENV NODE_ENV=production
4242
ENV PORT=3000

0 commit comments

Comments
 (0)