forked from WGierke/git_better
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (19 loc) · 662 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
FROM python:2.7-slim
# Update the sources list
RUN apt-get update && apt-get install -y apt-transport-https
# Install basic applications
RUN apt-get install -y tar git curl nano wget dialog net-tools build-essential
# Install postgresql-devel for psycopg2
RUN apt-get install -y libpq-dev
# Install Tkinter for matplotlib
RUN apt-get install -y python-tk
ADD . /code
WORKDIR /code
# Fix PYTHONPATH
ENV PYTHONPATH="$PYTHONPATH:/code"
ENV DJANGO_SECRET_KEY="thisisthesecretkey"
RUN pip install -r requirements.txt
# Download stopwords
RUN python -m nltk.downloader stopwords
RUN python server/manage.py migrate
CMD ["python", "server/start_server.py"]