diff --git a/Dockerfile b/Dockerfile index 4da1e50..b33c234 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # This file is inspired by https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile -FROM node:18-alpine AS base +FROM node:24-alpine AS base #----------------------------------------- # STAGE 1: Build the Next.js project @@ -27,11 +27,11 @@ RUN npm run build #----------------------------------------- # STAGE 3: Run the Next.js server #----------------------------------------- -FROM base as production +FROM base AS production WORKDIR /app -ENV NODE_ENV production +ENV NODE_ENV=production RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs @@ -54,7 +54,7 @@ USER nextjs EXPOSE 3000 -ENV PORT 3000 +ENV PORT=3000 # server.js is created by next build from the standalone output # https://nextjs.org/docs/pages/api-reference/next-config-js/output diff --git a/app/lib/actions/billActions.ts b/app/lib/actions/billActions.ts index e4220af..f618d7b 100644 --- a/app/lib/actions/billActions.ts +++ b/app/lib/actions/billActions.ts @@ -402,7 +402,7 @@ export const deleteBillById = withUser(async (user:AuthenticatedUser, locationID filter: { _id: loc._id, userId }, update: { $pull: { - bills: { name: bill.name } + bills: { name: bill.name } as Partial } } }