-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
28 lines (24 loc) · 818 Bytes
/
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
FROM debian
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y python-pyrex
RUN apt-get install -y libffi-dev
RUN apt-get install -y libfuzzy-dev
RUN apt-get install -y python-dateutil
RUN apt-get install -y libsqlite3-dev
RUN apt-get install -y python-pip
RUN apt-get install -y git vim wget
RUN pip install pip --upgrade
RUN pip install pip-upgrader
RUN mkdir -p /opt/data/samples
RUN mkdir -p /opt/data/temp
RUN mkdir -p /opt/data/unprocessed_samples
VOLUME ["/opt/data", "/opt/aleph"]
WORKDIR /opt
#RUN pip_upgrade --skip-virtualenv-check install -r /opt/aleph/requirements.txt
RUN pip install -r aleph/requirements.txt
RUN echo "SECRETE_KEY='`openssl rand -base64 32`'" > aleph/settings.py #Add a secret key
RUN bin/db_create.py
RUN bin/aleph-server.py &
RUN bin/aleph-webui.sh &
EXPOSE 5000