diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e04e3c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +# Use an official PHP runtime as a parent image +FROM php:7.4-apache + +# Set the working directory in the container +WORKDIR /var/www/html + +# Copy your PHP application code into the container +COPY . . + +# Install PHP extensions and other dependencies +RUN apt-get update && \ + apt-get install -y libpng-dev && \ + docker-php-ext-install pdo pdo_mysql gd + +# Expose the port Apache listens on EXPOSE 80 # Start Apache when the container runs +CMD ["apache2-foreground"]