Spaces:
Sleeping
Sleeping
Se crea el dockerfile y el fichero /app
Browse files- Dockerfile +13 -0
- app/index.php +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM debian:12.6
|
| 2 |
+
RUN apt update -y
|
| 3 |
+
RUN apt upgrade -y
|
| 4 |
+
RUN apt -y install openssh-server
|
| 5 |
+
RUN apt -y install apache2
|
| 6 |
+
RUN apt -y install php
|
| 7 |
+
|
| 8 |
+
RUN rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
+
COPY ./app ./app
|
| 11 |
+
EXPOSE 7860
|
| 12 |
+
WORKDIR app
|
| 13 |
+
CMD ["php", "-S", "0.0.0.0:7860"]
|
app/index.php
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
$edad = 23;
|
| 3 |
+
$nombre = "Norberto";
|
| 4 |
+
|
| 5 |
+
?>
|
| 6 |
+
|
| 7 |
+
<html>
|
| 8 |
+
<h1>Welcome to my crazy page</h1>
|
| 9 |
+
<p>
|
| 10 |
+
Hello, my name is <?php $edad ?> and i'am <?php $nombre ?> years old.
|
| 11 |
+
</p>
|
| 12 |
+
|
| 13 |
+
</html>
|