forked from omaha-consulting/omaha-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-gcp
40 lines (31 loc) · 1.34 KB
/
Dockerfile-gcp
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
36
37
38
39
40
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 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
ADD . $omaha
# setup all the configfiles
RUN \
mkdir /etc/nginx/sites-enabled/ && \
rm /etc/nginx/conf.d/default.conf && \
rm /etc/nginx/nginx.conf && \
ln -s /srv/omaha/conf/nginx.conf /etc/nginx/ && \
ln -s /srv/omaha/conf/nginx-app.conf /etc/nginx/sites-enabled/ && \
ln -s /srv/omaha/conf/supervisord.conf /etc/supervisor/conf.d/
ENV AWS_STORAGE_BUCKET_NAME="" AWS_ROLE=""
EXPOSE 80
EXPOSE 8080
CMD ["paver", "docker_run"]