update coord for copy/cut coord

This commit is contained in:
troispoils 2024-05-09 20:43:29 +02:00
parent 8b52d69ae9
commit 94012aed45
5 changed files with 22 additions and 2 deletions

View file

@ -12,4 +12,21 @@ EXPOSE 3000
WORKDIR /app/server
# Ajout du serveur MySQL
FROM mysql:latest
ENV MYSQL_ROOT_PASSWORD=CHANGEIT
ENV MYSQL_DATABASE=ac2re
# Copie du fichier SQL
COPY db.sql /docker-entrypoint-initdb.d/
# Exécution du fichier SQL lors du démarrage du conteneur
CMD ["mysqld", "--init-file", "/docker-entrypoint-initdb.d/db.sql"]
# Retour au répertoire node
FROM node:latest
WORKDIR /app/server
CMD ["npm", "start"]