update pour test

This commit is contained in:
cangui 2024-10-10 21:39:01 +02:00
parent c9a74481d0
commit 747a938ef6
3 changed files with 4 additions and 4 deletions

View File

@ -8,11 +8,11 @@ RUN apt-get update && apt-get install -y git
WORKDIR /app
# Copier le script d'update dans le conteneur
COPY update.sh /usr/local/bin/update.sh
RUN chmod +x /usr/local/bin/update.sh
COPY up.sh /usr/local/bin/up.sh
RUN chmod +x /usr/local/bin/up.sh
# Exposer le port sur lequel l'application s'exécute
EXPOSE 8080
# Démarrer l'application avec mise à jour du dépôt
CMD ["/bin/sh", "-c", "/usr/local/bin/update.sh && npm install && node app.js"]
CMD ["/bin/sh", "-c", "/usr/local/bin/up.sh && npm install && node app.js"]

View File

@ -15,7 +15,7 @@ services:
- db
volumes:
- backend_server_app:/app # Utiliser un volume nommé explicitement
working_dir: /app/manga-backend-server
working_dir: /app
command: sh -c "npm install && node app.js"
db:

View File