Spaces:
Running
Running
Commit ·
e04c022
1
Parent(s): 249e164
Instalacion inicial
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM debian:12.6
|
| 2 |
+
RUN apt upate -y
|
| 3 |
+
RUN apt upgrade -y
|
| 4 |
+
RUN apt install -y php apache2
|
| 5 |
+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
| 6 |
+
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;"
|
| 7 |
+
RUN php composer-setup.php
|
| 8 |
+
RUN php -r "unlink('composer-setup.php');"
|
| 9 |
+
RUN mv composer.phar /usr/local/bin/composer
|
| 10 |
+
RUN curl -fsSL https://fnm.vercel.app/install | bash
|
| 11 |
+
RUN source ~/.bashrc
|
| 12 |
+
RUN fnm use --install-if-missing 20
|
| 13 |
+
RUN node -v # should print `v20.17.0`
|
| 14 |
+
RUN npm -v # should print `10.8.2`
|