update pour test
This commit is contained in:
parent
c9a74481d0
commit
747a938ef6
@ -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"]
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user