MODIFICACION DE DOCKERFILE
Browse files- Dockerfile +5 -2
- app/index.php +1 -1
Dockerfile
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
FROM php:8.2-cli
|
2 |
-
|
3 |
COPY ./app/ ./app/
|
4 |
-
|
|
|
|
|
|
|
|
1 |
FROM php:8.2-cli
|
2 |
+
|
3 |
COPY ./app/ ./app/
|
4 |
+
|
5 |
+
EXPOSE 7860
|
6 |
+
WORKDIR app
|
7 |
+
CMD["php", "-S", "0.0.0.0.:7860"]
|
app/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
<?php
|
2 |
echo("<h1>Hola</h1>");
|
3 |
-
|
|
|
1 |
<?php
|
2 |
echo("<h1>Hola</h1>");
|
3 |
+
?>
|