Spaces:
Runtime error
Runtime error
uso de php:0.8-apache
Browse files- Dockerfile +20 -12
Dockerfile
CHANGED
|
@@ -1,12 +1,20 @@
|
|
| 1 |
-
FROM debian:12.6
|
| 2 |
-
RUN apt update -y
|
| 3 |
-
RUN apt upgrade -y
|
| 4 |
-
RUN apt install -y openssh-server
|
| 5 |
-
RUN apt install -y apache2
|
| 6 |
-
RUN apt install -y php
|
| 7 |
-
RUN apt install -y curl
|
| 8 |
-
RUN curl -4 ifconfig.me
|
| 9 |
-
RUN rm -rf /var/lib/apt/lists/*
|
| 10 |
-
|
| 11 |
-
COPY index.php index.php
|
| 12 |
-
CMD ["php", "-S", "localhost:7680", "./index.php"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FROM debian:12.6
|
| 2 |
+
# RUN apt update -y
|
| 3 |
+
# RUN apt upgrade -y
|
| 4 |
+
# RUN apt install -y openssh-server
|
| 5 |
+
# RUN apt install -y apache2
|
| 6 |
+
# RUN apt install -y php
|
| 7 |
+
# RUN apt install -y curl
|
| 8 |
+
# RUN curl -4 ifconfig.me
|
| 9 |
+
# RUN rm -rf /var/lib/apt/lists/*
|
| 10 |
+
|
| 11 |
+
# COPY index.php index.php
|
| 12 |
+
# CMD ["php", "-S", "localhost:7680", "./index.php"]
|
| 13 |
+
|
| 14 |
+
FROM php:8.0-apache
|
| 15 |
+
|
| 16 |
+
COPY . /var/www/html/
|
| 17 |
+
|
| 18 |
+
EXPOSE 80
|
| 19 |
+
|
| 20 |
+
CMD ["apache2-foreground"]
|