-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
36 lines (27 loc) · 821 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
29
30
31
32
33
34
35
36
FROM continuumio/miniconda3
MAINTAINER Jan Rudolph <jan.daniel.rudolph@gmail.com>
# INSTALL REDIS
RUN apt-get update && apt-get install -y build-essential
RUN wget http://download.redis.io/redis-stable.tar.gz \
&& tar xvzf redis-stable.tar.gz \
&& rm redis-stable.tar.gz \
&& cd redis-stable \
&& make
# DOWNLOAD DATABASES
RUN wget http://cs.tau.ac.il/~jandanielr/db.tar.gz \
&& tar xvzf db.tar.gz \
&& rm db.tar.gz
# INSTALL DEPENDENCIES
COPY conda_requirements.txt conda_requirements.txt
RUN conda install --yes --file conda_requirements.txt
COPY pip_requirements.txt pip_requirements.txt
RUN pip install -r pip_requirements.txt
COPY . photon
WORKDIR photon
RUN pip install -e .
RUN mv /db db
RUN chmod +x phos/app.py
# RUN CELERY AS ROOT
ENV C_FORCE_ROOT TRUE
EXPOSE 5000
ENTRYPOINT ["./run.sh"]