EvalueTonSavoir/server/Dockerfile
2024-12-07 14:58:15 -05:00

17 lines
No EOL
297 B
Docker

FROM node:18 AS backend
WORKDIR /usr/src/app/serveur
COPY ./package*.json ./
RUN npm install
COPY ./ .
ENV PORT=3000
EXPOSE ${PORT}
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:${PORT}/health || exit 1
CMD ["npm", "run", "start"]