File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ FROM node:22-alpine AS runner
2727
2828WORKDIR /app
2929
30+ RUN corepack enable && corepack prepare pnpm@10.6.5 --activate
31+
3032RUN addgroup --system --gid 1001 nodejs && \
3133 adduser --system --uid 1001 fastify
3234
3335USER fastify
3436
3537COPY --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
3739COPY --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
4141ENV NODE_ENV=production
4242ENV PORT=3000
You can’t perform that action at this time.
0 commit comments