42_Inception/srcs/requirements/bonus/site/Dockerfile

17 lines
329 B
Text
Raw Normal View History

2025-02-18 10:37:35 +01:00
FROM alpine:3.21.2
LABEL org.opencontainers.image.authors="alier@student.42mulhouse.fr"
RUN apk add nodejs curl npm
COPY app/ /app
RUN cd /app && npm install && npm run build
EXPOSE 3000
HEALTHCHECK --start-period=5s \
CMD curl "http://site:3000/site/index.html" --fail || exit 1
ENTRYPOINT ["node", "/app/index.mjs"]