Add Dockerfile with HOST env var
This commit is contained in:
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
FROM node:20-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
ENV HOST=0.0.0.0
|
||||||
|
ENV NODE_ENV=production
|
||||||
|
COPY . .
|
||||||
|
RUN npm install && npm run build
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["node", ".next/standalone/server.js"]
|
||||||
Reference in New Issue
Block a user