Commit 03a79273 authored by Aflitos, Saulo Alves's avatar Aflitos, Saulo Alves
Browse files

using amazon debian repository

parent f6f722b5
......@@ -4,10 +4,41 @@ FROM ubuntu:14.04.3
ENV DEBIAN_FRONTEND noninteractive
RUN bash -c "echo -e 'deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse\ndeb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse\ndeb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse\ndeb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse' > /etc/apt/sources.list" && \
apt-get clean all && \
apt-get update && \
apt-get -y upgrade && \
#RUN bash -c "echo -e 'deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse\ndeb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse\ndeb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse\ndeb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse' > /etc/apt/sources.list" && cat /etc/apt/sources.list
# california
ENV AMAZON=us-west-1
# oregon
#ENV AMAZON=us-west-2
# sao paulo
#ENV AMAZON=sa-east-1
# dublin
#ENV AMAZON=eu-west-1
# frankfurt
#ENV AMAZON=eu-central-1
# singapore
#ENV AMAZON=ap-southeast-1
# tokio
#ENV AMAZON=ap-northeast-1
RUN bash -c "echo -e '\
deb http://'$AMAZON'.clouds.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse\n\
deb http://'$AMAZON'.clouds.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse\n\
deb http://'$AMAZON'.clouds.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse\n' \
> /etc/apt/sources.list" && \
cat /etc/apt/sources.list && \
printenv | sort && \
rm /var/lib/apt/lists/* -rvf && \
mkdir -p /var/lib/apt/lists/partial && \
chmod 755 /var/lib/apt/lists/partial && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y -f libapache2-mod-wsgi apache2 nano build-essential \
checkinstall openssl sqlite3 libsqlite3-dev git nano \
libfreetype6 libfreetype6-dev zlib1g-dev libjpeg62 libjpeg62-dev \
......@@ -19,6 +50,8 @@ RUN bash -c "echo -e 'deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main re
a2enmod wsgi && a2enmod proxy && a2enmod proxy_http && a2enmod rewrite && \
mkdir -p /etc/apache2/mods-available/
# apt-get clean all && \
ADD requirements.txt /requirements.txt
RUN pip install --requirement /requirements.txt
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment