forked from nschneid/activedop
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (34 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
44 lines (34 loc) · 1.04 KB
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
44
FROM python:3.11
EXPOSE 5000/tcp
WORKDIR /app
# Install dependencies and submodules
COPY requirements.txt requirements.txt
COPY roaringbitmap roaringbitmap/
COPY disco-dop/ disco-dop/
RUN pip3 install -r requirements.txt
WORKDIR roaringbitmap/
RUN python setup.py install
WORKDIR ../disco-dop/
RUN pip3 install -r requirements.txt
RUN env CC=gcc python setup.py install
WORKDIR ..
# Copy the rest of the resources
COPY templates/ templates/
COPY cgel/ cgel/
COPY cgelbank2-punct/ cgelbank2-punct/
COPY static/ static/
COPY settings.cfg settings.cfg
COPY annotate.db annotate.db
COPY app.py app.py
COPY activedoptree.py activedoptree.py
COPY schema.sql schema.sql
COPY worker.py worker.py
COPY workerattr.py workerattr.py
COPY gh_helpers.py gh_helpers.py
COPY newsentsExample.csv newsentsExample.csv
COPY newsentsExample.csv.rankings.json newsentsExample.csv.rankings.json
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_ENV=production
# Run the Flask application with threading enabled
CMD ["python", "-m", "flask", "run", "--with-threads"]