Demosthene-OR commited on
Commit
6461788
1 Parent(s): ec0b3a7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -17,9 +17,6 @@ EXPOSE 7860
17
  # Copier le script SQL dans le conteneur
18
  COPY ./script.sql /docker-entrypoint-initdb.d/
19
 
20
- # Copier le script Python dans le conteneur
21
- COPY ./mysql_connector_python.py /code/mysql_connector_python.py
22
-
23
  # Démarrer le serveur MySQL
24
  CMD ["mysqld"]
25
 
@@ -51,6 +48,9 @@ WORKDIR $HOME/app
51
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
52
  COPY --chown=user . $HOME/app
53
 
 
 
 
54
  # Exécuter le script Python après le démarrage du serveur MySQL
55
  CMD ["sh", "-c", "python /code/mysql_connector_python.py"]
56
 
 
17
  # Copier le script SQL dans le conteneur
18
  COPY ./script.sql /docker-entrypoint-initdb.d/
19
 
 
 
 
20
  # Démarrer le serveur MySQL
21
  CMD ["mysqld"]
22
 
 
48
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
49
  COPY --chown=user . $HOME/app
50
 
51
+ # Copier le script Python dans le conteneur
52
+ COPY ./mysql_connector_python.py /code/mysql_connector_python.py
53
+
54
  # Exécuter le script Python après le démarrage du serveur MySQL
55
  CMD ["sh", "-c", "python /code/mysql_connector_python.py"]
56