-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f48a0b5
commit c142eb6
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Use the official PHP image as the base image | ||
FROM php:7.4-apache | ||
|
||
# Copy the application files into the container | ||
COPY . /var/www/html | ||
|
||
# Set the working directory in the container | ||
WORKDIR /var/www/html | ||
|
||
# Install necessary PHP extensions | ||
RUN apt-get update && apt-get install -y \ | ||
libicu-dev \ | ||
libzip-dev \ | ||
&& docker-php-ext-install \ | ||
intl \ | ||
zip \ | ||
&& a2enmod rewrite | ||
|
||
# Expose port 80 | ||
EXPOSE 80 | ||
|
||
# Define the entry point for the container | ||
CMD ["apache2-foreground"] |