diff --git a/Dockerfile b/Dockerfile index 28920ca..29b5c01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,6 @@ RUN yarn install # Rebuild the source code only when needed FROM node:20-alpine AS builder -ENV NEXT_PRIVATE_STANDALONE true - WORKDIR /app COPY --from=deps /app/node_modules ./node_modules @@ -23,7 +21,7 @@ RUN yarn build FROM node:20-alpine AS runner WORKDIR /app -ENV NODE_ENV production +ENV NODE_ENV=production RUN addgroup --system --gid 1001 ss_site RUN adduser --system --uid 1001 ss_site @@ -40,7 +38,7 @@ USER ss_site EXPOSE 3000 -ENV PORT 3000 -ENV HOSTNAME "0.0.0.0" +ENV PORT=3000 +ENV HOSTNAME="0.0.0.0" CMD ["node", "server.js"]