Spaces:
Running
Running
Commit ·
f04cf7c
1
Parent(s): 9ca610a
refactor 1
Browse files- Dockerfile +5 -10
Dockerfile
CHANGED
|
@@ -1,28 +1,23 @@
|
|
| 1 |
FROM debian:12.6
|
|
|
|
| 2 |
RUN apt update -y
|
| 3 |
RUN apt upgrade -y
|
| 4 |
-
RUN apt install -y php apache2 curl unzip
|
| 5 |
-
|
| 6 |
-
RUN apt install -y xz-utils
|
| 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;"
|
| 9 |
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 ls -la
|
| 15 |
RUN chmod 777 /node-v20.17.0-linux-x64.tar.xz
|
| 16 |
-
RUN which tar
|
| 17 |
-
RUN pwd
|
| 18 |
RUN tar -xf '/node-v20.17.0-linux-x64.tar.xz'
|
| 19 |
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/
|
| 20 |
-
|
| 21 |
-
RUN apt install -y php-xml php-dom php-pdo php-mysql php-sqlite3
|
| 22 |
RUN composer create-project laravel/laravel example-app
|
| 23 |
RUN cd example-app
|
| 24 |
WORKDIR /example-app
|
| 25 |
-
RUN ls -la
|
| 26 |
# Verificar que archivos necesitan acceso de escritura o carpetas
|
| 27 |
RUN chmod 777 -R .
|
| 28 |
CMD [ "bash","-c" , "ls -la; php artisan serve --host=0.0.0.0 --port=7860"]
|
|
|
|
| 1 |
FROM debian:12.6
|
| 2 |
+
|
| 3 |
RUN apt update -y
|
| 4 |
RUN apt upgrade -y
|
| 5 |
+
RUN apt install -y php apache2 curl unzip wget xz-utils php-sqlite3
|
| 6 |
+
|
|
|
|
| 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;"
|
| 9 |
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
|
| 20 |
WORKDIR /example-app
|
|
|
|
| 21 |
# Verificar que archivos necesitan acceso de escritura o carpetas
|
| 22 |
RUN chmod 777 -R .
|
| 23 |
CMD [ "bash","-c" , "ls -la; php artisan serve --host=0.0.0.0 --port=7860"]
|