forked from n-at/docker-kallithea
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (32 loc) · 1.12 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
34
35
36
37
38
39
FROM ubuntu:14.04
MAINTAINER Alexey Nurgaliev <[email protected]>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y python python-pip python-ldap mercurial git \
python-dev software-properties-common libmysqlclient-dev libpq-dev && \
add-apt-repository -y ppa:nginx/stable && \
apt-get update && \
apt-get install -y nginx && \
\
mkdir /kallithea && \
cd /kallithea && \
mkdir -m 0777 config repos logs && \
hg clone https://kallithea-scm.org/repos/kallithea -u stable && \
cd kallithea && \
rm -r .hg && \
pip install --upgrade pip setuptools && \
pip install -e . && \
python setup.py compile_catalog && \
\
pip install mysql-python && \
pip install psycopg2 && \
\
apt-get purge --auto-remove -y python-dev software-properties-common && \
\
rm /etc/nginx/sites-enabled/*
ADD kallithea_vhost /etc/nginx/sites-enabled/kallithea_vhost
ADD run.sh /kallithea/run.sh
VOLUME ["/kallithea/config", "/kallithea/repos", "/kallithea/logs"]
EXPOSE 80
CMD ["/kallithea/run.sh"]