Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
techcow2 authored Aug 17, 2024
1 parent f9a9cbe commit 4b4a8d1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Use an official PHP runtime as a parent image
FROM php:8.1-apache

# Install required packages and enable PHP extensions
RUN apt-get update && apt-get install -y \
libpng-dev \
&& docker-php-ext-install gd

# Enable Apache mod_rewrite
RUN a2enmod rewrite

# Copy your application files into the container
COPY ./ /var/www/html/

# Set the correct permissions
RUN chown -R www-data:www-data /var/www/html/

# Expose port 80
EXPOSE 80

0 comments on commit 4b4a8d1

Please sign in to comment.