-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
33 lines (27 loc) · 1.1 KB
/
Dockerfile
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
FROM vikas027/debian-apache2-wheezy
MAINTAINER Vikas Kumar "[email protected]"
# Apache
ADD rattic.conf /etc/apache2/conf.d/sites-enabled/rattic
ADD start-apache.sh /start-apache.sh
# RatticDB
# Archive https://github.com/tildaslash/RatticWeb/archive/v1.3.1.zip
ADD v1.3.1.zip /opt/
RUN cd /opt/ && unzip v1.3.1.zip
ADD requirements-base.txt /opt/RatticWeb-1.3.1/requirements-base.txt
ADD requirements-sqlite.txt /opt/RatticWeb-1.3.1/
ADD local.cfg /opt/RatticWeb-1.3.1/conf/local.cfg
RUN cd /opt/RatticWeb-1.3.1/ && \
pip install -r requirements-sqlite.txt
RUN cd /opt/RatticWeb-1.3.1/ && \
./manage.py syncdb --noinput && ./manage.py migrate --all
RUN cd /opt/RatticWeb-1.3.1/ && \
mkdir static && ./manage.py collectstatic -c --noinput
RUN cd /opt/RatticWeb-1.3.1/ && \
./manage.py demosetup
ADD settings.py /opt/RatticWeb-1.3.1/ratticweb/
RUN chmod +x start-apache.sh && chown www-data /opt/RatticWeb-1.3.1/ && chown www-data:www-data /opt/RatticWeb-1.3.1/rattic.db
# Clean Up
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /opt/v1.3.1.zip
EXPOSE 80
CMD ["/start-apache.sh"]