Demosthene-OR commited on
Commit
defa4c3
1 Parent(s): 5e7565c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -21,20 +21,19 @@ EXPOSE 3306
21
 
22
  # RUN mysqld --verbose --help
23
 
24
- # Set up a new user named "user" with user ID 1000
25
- RUN useradd -m -u 1000 user
26
-
27
- # Switch to the "user" user
28
- USER user
29
-
30
  RUN chmod 777 -R /var
31
  # Afficher tous les fichiers du conteneur pendant la construction de l'image
32
  RUN ls -R /
33
 
34
-
35
  # Copier le script SQL dans le conteneur
36
  COPY --chown=user ./script.sql /docker-entrypoint-initdb.d/
37
 
 
 
 
 
 
 
38
  # Démarrer le serveur MySQL
39
  # CMD ["mysqld","--bind-address","demosthene-or-rakuten-mysql.hf.space"]
40
  # CMD ["mysql", "-u", "root", "-p${MYSQL_ROOT_PASSWORD}", "-h", "demosthene-or-rakuten-mysql.hf.space"]
 
21
 
22
  # RUN mysqld --verbose --help
23
 
 
 
 
 
 
 
24
  RUN chmod 777 -R /var
25
  # Afficher tous les fichiers du conteneur pendant la construction de l'image
26
  RUN ls -R /
27
 
 
28
  # Copier le script SQL dans le conteneur
29
  COPY --chown=user ./script.sql /docker-entrypoint-initdb.d/
30
 
31
+ # Set up a new user named "user" with user ID 1000
32
+ RUN useradd -m -u 1000 user
33
+
34
+ # Switch to the "user" user
35
+ USER user
36
+
37
  # Démarrer le serveur MySQL
38
  # CMD ["mysqld","--bind-address","demosthene-or-rakuten-mysql.hf.space"]
39
  # CMD ["mysql", "-u", "root", "-p${MYSQL_ROOT_PASSWORD}", "-h", "demosthene-or-rakuten-mysql.hf.space"]