forked from omaha-consulting/omaha-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-base
35 lines (28 loc) · 1.23 KB
/
Dockerfile-base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu-debootstrap:14.04
ENV omaha /srv/omaha
RUN \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ABF5BD827BD9BF62 && \
echo 'deb http://nginx.org/packages/ubuntu/ trusty nginx' | tee --append /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends python-pip python-dev python-lxml python-psycopg2 supervisor nginx libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev python-pil build-essential libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support automake libtool pkg-config libssl-dev wget tar && \
apt-get clean && \
apt-get autoremove -y && \
rm -rf /var/lib/{apt,dpkg,cache,log}/ && \
pip install uwsgi
RUN \
wget https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.78.tar.gz -O /usr/src/v1.78.tar.gz && \
tar xvz -C /usr/src -f /usr/src/v1.78.tar.gz && \
cd /usr/src/s3fs-fuse-1.78 && \
./autogen.sh && \
./configure --prefix=/usr && \
make && \
make install && \
mkdir /srv/omaha_s3 && \
rm /usr/src/v1.78.tar.gz
RUN mkdir -p $omaha/requirements
WORKDIR ${omaha}
ADD ./requirements/base.txt $omaha/requirements/base.txt
RUN \
pip install paver && \
pip install --upgrade six && \
pip install -r requirements/base.txt