update docker file
All checks were successful
Build Docker Image Front / run (pull_request) Successful in 1m6s
Build Docker Image Back / run (pull_request) Successful in 5m10s
JsDocs / coverage (pull_request) Successful in 7m32s
Test and coverage / coverage (pull_request) Successful in 9m40s

This commit is contained in:
Clement 2024-05-18 14:44:36 +02:00
parent 02dc74bb79
commit d6109ccdff
2 changed files with 8 additions and 3 deletions

View File

@ -43,12 +43,15 @@ USER node
# go to work folder
WORKDIR /home/node
ARG port
ENV env_port $port
# Expose port
EXPOSE 3000
EXPOSE $port
# Add Healthcheck
# FIXME: remttre check avec un port
# HEALTHCHECK --interval=10s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://localhost:3000 || exit 1
HEALTHCHECK --interval=10s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://localhost:$port || exit 1
# copy from build image
COPY --chown=node:node --from=BUILD_IMAGE /home/node/node_modules ./node_modules

View File

@ -31,6 +31,8 @@ services:
back_drink:
image: git.lab-ouest.org/epitech/ratrapage_t-web_back:pr-6-head
environment:
- port=${BACK_BASE_PORT}
labels:
- traefik.enable=true
- traefik.http.routers.expressDrinkTweb.rule=Host(`${DRINK_URL}`)