From f1eb9d827bb74add1e9801d0fd0f12f8c4df08a0 Mon Sep 17 00:00:00 2001 From: Dex Burgess Date: Sun, 18 Aug 2024 02:10:30 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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"]