EvalueTonSavoir/server/Dockerfile

17 lines
297 B
Text
Raw Normal View History

2024-03-29 20:08:34 -04:00
FROM node:18 AS backend
WORKDIR /usr/src/app/serveur
COPY ./package*.json ./
RUN npm install
COPY ./ .
2024-12-07 14:58:15 -05:00
ENV PORT=3000
EXPOSE ${PORT}
2024-03-29 20:08:34 -04:00
2024-12-06 21:01:23 -05:00
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:${PORT}/health || exit 1
2024-03-29 20:08:34 -04:00
CMD ["npm", "run", "start"]