Spaces:
Paused
Paused
Create Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official PHP Apache image
|
| 2 |
+
FROM php:8.1-apache
|
| 3 |
+
|
| 4 |
+
# Install git and any necessary PHP extensions
|
| 5 |
+
RUN apt-get update && apt-get install -y git && \
|
| 6 |
+
docker-php-ext-install pdo pdo_mysql mysqli
|
| 7 |
+
|
| 8 |
+
# Set the working directory
|
| 9 |
+
WORKDIR /var/www/html
|
| 10 |
+
|
| 11 |
+
# Clone your repository into the container (using the master branch)
|
| 12 |
+
RUN git clone https://github.com/EMMYHENZ-TECH/Ff-hk.git .
|
| 13 |
+
|
| 14 |
+
# Expose port 80 for Apache
|
| 15 |
+
EXPOSE 80
|
| 16 |
+
|
| 17 |
+
# Start Apache in the foreground
|
| 18 |
+
CMD ["apache2-foreground"]
|