Spaces:
Running
Running
ds commited on
Commit ·
ebcfa9f
1
Parent(s): 8bed157
- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM ubuntu:
|
| 2 |
|
| 3 |
RUN apt-get update -y
|
| 4 |
RUN apt-get upgrade -y
|
|
@@ -28,4 +28,7 @@ RUN apt-get install -y mariadb-server sudo
|
|
| 28 |
RUN usermod -aG sudo ubuntu
|
| 29 |
USER root:root
|
| 30 |
RUN sudo service mariadb start; service --status-all
|
|
|
|
|
|
|
|
|
|
| 31 |
CMD [ "bash","-c" , "sudo su; id; whoami; ls -la database; service mariadb start; php artisan serve --host=0.0.0.0 --port=7860 > /dev/null 2>&1"]
|
|
|
|
| 1 |
+
FROM ubuntu:24.04
|
| 2 |
|
| 3 |
RUN apt-get update -y
|
| 4 |
RUN apt-get upgrade -y
|
|
|
|
| 28 |
RUN usermod -aG sudo ubuntu
|
| 29 |
USER root:root
|
| 30 |
RUN sudo service mariadb start; service --status-all
|
| 31 |
+
|
| 32 |
+
EXPOSE 7860
|
| 33 |
+
|
| 34 |
CMD [ "bash","-c" , "sudo su; id; whoami; ls -la database; service mariadb start; php artisan serve --host=0.0.0.0 --port=7860 > /dev/null 2>&1"]
|