From 57ddeb8f3a268d719b759e5e4a8ffae708114a2c Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Fri, 28 Jun 2019 14:43:01 -0700 Subject: [PATCH] Migrate to Amazon Linux 2 --- Dockerfile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4f7765d5..7f0159766 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,20 @@ -FROM ubuntu:12.04 +FROM amazonlinux:2 # Install dependencies -RUN apt-get update -y -RUN apt-get install -y git curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql +RUN yum install -y \ + curl \ + httpd \ + php \ + && ln -s /usr/sbin/httpd /usr/sbin/apache2 # Install app -RUN rm -rf /var/www/* -ADD src /var/www +RUN rm -rf /var/www/html/* && mkdir -p /var/www/html +ADD src /var/www/html # 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 +RUN chown -R apache:apache /var/www +ENV APACHE_RUN_USER apache +ENV APACHE_RUN_GROUP apache ENV APACHE_LOG_DIR /var/log/apache2 EXPOSE 80