diff --git a/Dockerfile b/Dockerfile index 6502e85..07b6847 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index 27088cf..3f0d987 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/update.sh b/up.sh similarity index 100% rename from update.sh rename to up.sh