ladogton2010 commited on
Commit
3fd0e5a
·
1 Parent(s): 3c02582
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ubuntu:latest
2
 
3
  RUN apt update -y
4
  RUN apt upgrade -y
@@ -20,11 +20,11 @@ RUN cd example-app
20
  WORKDIR /example-app
21
  # Verificar que archivos necesitan acceso de escritura o carpetas
22
  RUN ls -la
23
- # RUN chmod 706 -R /example-app/bootstrap/cache
24
- # RUN chmod 760 -R /example-app/storage
25
- # RUN chmod 706 /example-app/database/database.sqlite
26
- RUN chown -R ubuntu:ubuntu /example-app
27
  RUN apt install -y mariadb-server sudo
28
- RUN usermod -aG sudo ubuntu
29
  RUN sudo service mariadb start; service --status-all
30
- CMD [ "bash","-c" , "id; whoami; ls -la database; service mariadb start; php artisan serve --host=0.0.0.0 --port=7860"]
 
1
+ FROM debian:latest
2
 
3
  RUN apt update -y
4
  RUN apt upgrade -y
 
20
  WORKDIR /example-app
21
  # Verificar que archivos necesitan acceso de escritura o carpetas
22
  RUN ls -la
23
+ RUN chmod 706 -R /example-app/bootstrap/cache
24
+ RUN chmod 760 -R /example-app/storage
25
+ RUN chmod 706 /example-app/database/database.sqlite
26
+ # RUN chown -R ubuntu:ubuntu /example-app
27
  RUN apt install -y mariadb-server sudo
28
+ #RUN usermod -aG sudo ubuntu
29
  RUN sudo service mariadb start; service --status-all
30
+ CMD [ "bash","-c" , "id; whoami; ls -la database; service mariadb start; php artisan serve --host=0.0.0.0 --port=7860 > /dev/null 2>&1"]