Update Dockerfile
parent
84e70afd4c
commit
f1eb9d827b
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue