forked from yencarnacion/libre-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
20 lines (20 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:12.10
MAINTAINER Yamir Encarnacion "[email protected]"
RUN apt-get -qq update
RUN apt-get install -y python-dev python-setuptools supervisor git-core libgdal-dev
RUN easy_install pip
RUN pip install virtualenv
RUN pip install uwsgi
RUN virtualenv --no-site-packages /opt/ve/libredocker
ADD . /opt/apps/libredocker
ADD .docker/supervisor.conf /opt/supervisor.conf
ADD .docker/run.sh /usr/local/bin/run
RUN (cd /opt/apps/ && git clone -b update_admin_user https://github.com/yencarnacion/libre.git)
RUN /opt/ve/libredocker/bin/pip install -r /opt/apps/libre/libre/requirements.txt
RUN (cd /opt/apps/libre && /opt/ve/libredocker/bin/python manage.py syncdb --noinput)
RUN (cd /opt/apps/libre && /opt/ve/libredocker/bin/python manage.py migrate)
RUN (cd /opt/apps/libre && /opt/ve/libredocker/bin/python manage.py update_admin_user --username=admin --password=libre)
ADD .docker/settings_local.py /opt/apps/libre/settings_local.py
#RUN (cd /opt/apps/libre/ && /opt/ve/libredocker/bin/python manage.py collectstatic --noinput)
EXPOSE 8000
CMD ["/bin/sh", "-e", "/usr/local/bin/run"]