forked from aws-samples/ecs-demo-php-simple-app
-
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
Showing
1 changed file
with
20 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,20 @@ | ||
FROM ubuntu:12.04 | ||
|
||
# Install dependencies | ||
RUN apt-get update -y | ||
RUN apt-get install -y git curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql | ||
|
||
# Install app | ||
RUN rm -rf /var/www/* | ||
ADD ecs-demo-php-simple-app /var/www | ||
|
||
# Configure apache | ||
RUN a2enmod rewrite | ||
RUN chown -R www-data:www-data /var/www | ||
ENV APACHE_RUN_USER www-data | ||
ENV APACHE_RUN_GROUP www-data | ||
ENV APACHE_LOG_DIR /var/log/apache2 | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"] |