We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de6ba86 + 57ddeb8 commit db216f5Copy full SHA for db216f5
Dockerfile
@@ -1,18 +1,20 @@
1
-FROM ubuntu:12.04
+FROM amazonlinux:2
2
3
# Install dependencies
4
-RUN apt-get update -y
5
-RUN apt-get install -y git curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql
+RUN yum install -y \
+ curl \
6
+ httpd \
7
+ php \
8
+ && ln -s /usr/sbin/httpd /usr/sbin/apache2
9
10
# Install app
-RUN rm -rf /var/www/*
-ADD src /var/www
11
+RUN rm -rf /var/www/html/* && mkdir -p /var/www/html
12
+ADD src /var/www/html
13
14
# Configure apache
-RUN a2enmod rewrite
-RUN chown -R www-data:www-data /var/www
-ENV APACHE_RUN_USER www-data
15
-ENV APACHE_RUN_GROUP www-data
+RUN chown -R apache:apache /var/www
16
+ENV APACHE_RUN_USER apache
17
+ENV APACHE_RUN_GROUP apache
18
ENV APACHE_LOG_DIR /var/log/apache2
19
20
EXPOSE 80
0 commit comments