Update port
This commit is contained in:
parent
992a4a6500
commit
d17f4aa624
2 changed files with 4 additions and 3 deletions
|
|
@ -22,6 +22,8 @@ RUN pnpm build
|
||||||
|
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
ENV PORT=805
|
||||||
|
ENV HOSTNAME "0.0.0.0"
|
||||||
|
|
||||||
# Copy necessary files
|
# Copy necessary files
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
|
|
@ -30,7 +32,5 @@ COPY --from=builder /app/.next/static ./.next/static
|
||||||
COPY --from=builder /app/src/styles/output.css ./src/styles/output.css
|
COPY --from=builder /app/src/styles/output.css ./src/styles/output.css
|
||||||
|
|
||||||
EXPOSE 805
|
EXPOSE 805
|
||||||
ENV PORT 3000
|
|
||||||
ENV HOSTNAME "0.0.0.0"
|
|
||||||
|
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ services:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "805:3000"
|
- "805:805"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
|
- PORT=805
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue