fix: dockerfile

This commit is contained in:
hugeblank 2024-12-03 12:41:57 -08:00
parent 926305669b
commit 4051184fdb
4 changed files with 3 additions and 26 deletions

View file

@ -1,4 +1,4 @@
FROM node:22-alpine AS base
FROM node:23-alpine AS base
FROM base AS deps
WORKDIR /app
@ -14,6 +14,7 @@ RUN npm run build
FROM base AS runner
WORKDIR /app
COPY --from=builder /app/build ./
COPY --from=deps /app/node_modules ./node_modules
ENV PORT=3000
EXPOSE 3000
CMD ["node", "index.js"]