File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu:12.04
1
+ FROM amazonlinux:2
2
2
3
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
4
+ RUN yum install -y \
5
+ curl \
6
+ httpd \
7
+ php \
8
+ && ln -s /usr/sbin/httpd /usr/sbin/apache2
6
9
7
10
# Install app
8
- RUN rm -rf /var/www/*
9
- ADD src /var/www
11
+ RUN rm -rf /var/www/html/* && mkdir -p /var/www/html
12
+ ADD src /var/www/html
10
13
11
14
# Configure apache
12
- RUN a2enmod rewrite
13
- RUN chown -R www-data:www-data /var/www
14
- ENV APACHE_RUN_USER www-data
15
- ENV APACHE_RUN_GROUP www-data
15
+ RUN chown -R apache:apache /var/www
16
+ ENV APACHE_RUN_USER apache
17
+ ENV APACHE_RUN_GROUP apache
16
18
ENV APACHE_LOG_DIR /var/log/apache2
17
19
18
20
EXPOSE 80
You can’t perform that action at this time.
0 commit comments