Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official PHP image from the Docker Hub
|
2 |
+
FROM php:8.1-cli
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /var/www/html
|
6 |
+
|
7 |
+
# Copy all files from the current directory to the working directory in the container
|
8 |
+
COPY . .
|
9 |
+
|
10 |
+
# Expose port 7860
|
11 |
+
EXPOSE 7860
|
12 |
+
|
13 |
+
# Start the PHP built-in server
|
14 |
+
CMD ["php", "-S", "0.0.0.0:7860", "index.php"]
|