Spaces:
Running
Running
ds commited on
Commit ·
8bed157
1
Parent(s): d4f21c1
- Dockerfile +9 -9
Dockerfile
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
FROM ubuntu:
|
| 2 |
|
| 3 |
-
RUN apt update -y
|
| 4 |
-
RUN apt upgrade -y
|
| 5 |
-
RUN apt install -y php apache2 curl unzip wget xz-utils php-xml php-sqlite3
|
| 6 |
# php-xml php-dom php-pdo php-mysql
|
| 7 |
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
| 8 |
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
@@ -10,10 +10,10 @@ RUN php composer-setup.php
|
|
| 10 |
RUN php -r "unlink('composer-setup.php');"
|
| 11 |
RUN mv composer.phar /usr/local/bin/composer
|
| 12 |
|
| 13 |
-
RUN wget https://nodejs.org/dist/v20.17.0/node-v20.17.0-linux-x64.tar.xz
|
| 14 |
-
RUN chmod 777 /node-v20.17.0-linux-x64.tar.xz
|
| 15 |
-
RUN tar -xf '/node-v20.17.0-linux-x64.tar.xz'
|
| 16 |
-
RUN cp -r /node-v20.17.0-linux-x64/bin /node-v20.17.0-linux-x64/include /node-v20.17.0-linux-x64/lib /node-v20.17.0-linux-x64/share /usr/
|
| 17 |
|
| 18 |
RUN composer create-project laravel/laravel example-app
|
| 19 |
RUN cd example-app
|
|
@@ -24,7 +24,7 @@ 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 |
USER root:root
|
| 30 |
RUN sudo service mariadb start; service --status-all
|
|
|
|
| 1 |
+
FROM ubuntu:16.04
|
| 2 |
|
| 3 |
+
RUN apt-get update -y
|
| 4 |
+
RUN apt-get upgrade -y
|
| 5 |
+
RUN apt-get install -y php apache2 curl unzip wget xz-utils php-xml php-sqlite3
|
| 6 |
# php-xml php-dom php-pdo php-mysql
|
| 7 |
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
| 8 |
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
|
|
| 10 |
RUN php -r "unlink('composer-setup.php');"
|
| 11 |
RUN mv composer.phar /usr/local/bin/composer
|
| 12 |
|
| 13 |
+
#RUN wget https://nodejs.org/dist/v20.17.0/node-v20.17.0-linux-x64.tar.xz
|
| 14 |
+
#RUN chmod 777 /node-v20.17.0-linux-x64.tar.xz
|
| 15 |
+
#RUN tar -xf '/node-v20.17.0-linux-x64.tar.xz'
|
| 16 |
+
#RUN cp -r /node-v20.17.0-linux-x64/bin /node-v20.17.0-linux-x64/include /node-v20.17.0-linux-x64/lib /node-v20.17.0-linux-x64/share /usr/
|
| 17 |
|
| 18 |
RUN composer create-project laravel/laravel example-app
|
| 19 |
RUN cd example-app
|
|
|
|
| 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-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
|