-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
32 lines (22 loc) · 898 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
# syntax=docker/dockerfile:1
FROM python:3.9-slim
WORKDIR /app
# Copy code
COPY brise_plandok/__init__.py brise_plandok/
COPY brise_plandok/utils.py brise_plandok/
COPY brise_plandok/constants.py brise_plandok/
COPY brise_plandok/services/__init__.py brise_plandok/services/
COPY brise_plandok/services/full_extractor.py brise_plandok/services/
COPY brise_plandok/services/filter_predicted_attributes.py brise_plandok/services/
COPY brise_plandok/services/filter_psets.py brise_plandok/services/
COPY brise_plandok/services/psets.py brise_plandok/services/
# Install packages
COPY setup_service.py ./setup.py
RUN pip install .
# Donwload data
RUN apt-get update
RUN apt-get install -y wget unzip
RUN wget https://owncloud.tuwien.ac.at/index.php/s/Cj7QyMrWtwSclkm/download
RUN unzip download
# Run service
CMD [ "python3" , "brise_plandok/services/full_extractor.py", "-d", "full_data" ]