domify-news / Dockerfile
Domify's picture
Create Dockerfile
dd9f862 verified
raw
history blame contribute delete
356 Bytes
FROM node:18-slim
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 CMD node -e "require('http').get('http://localhost:7860/health',r=>{if(r.statusCode!==200)throw new Error(r.statusCode)})"
ENV NODE_ENV=production
ENV PORT=7860
CMD ["node", "index.js"]