File size: 340 Bytes
324d099 |
1 2 3 4 5 6 7 8 9 10 11 12 |
FROM node:20-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --only=production
COPY server.js ./
COPY public ./public
ENV PORT=7860
EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:7860/ || exit 1
CMD ["node", "server.js"]
|