-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (33 loc) · 914 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
37
38
39
40
41
42
43
# TODO: update pip version to be newer?
FROM ubuntu:latest
#RUN apt-get update -y
#RUN apt-get -y upgrade
#RUN apt-get install -y python-pip python-dev build-essential
RUN \
apt-get update && \
apt-get install -y python python-dev python-pip python-virtualenv && \
rm -rf /var/lib/apt/lists/*
RUN pip install virtualenv
RUN mkdir -p /legis
COPY legis_view /legis/legis_view
COPY legis_data /legis/legis_data
COPY *.py /legis/
COPY *.sh /legis/
WORKDIR /legis
RUN virtualenv legis_env
RUN source /legis_env/bin/activate
WORKDIR /legis/legis_view
RUN pip install -r requirements.txt
WORKDIR /legis/legis_data
RUN pip install -r requirements.txt
RUN python nltk_setup.py
EXPOSE 5000
EXPOSE 5001
# turn on debugging for development
ENV FLASK_DEBUG=1
ENV PYTHON_UNBUFFERED=1
WORKDIR /legis
RUN chmod +x /legis/start.sh
#RUN /legis/start.sh
#CMD ["/bin/sh", "start.sh"]
ENTRYPOINT ["/bin/sh", "start.sh"]