Hannes Kuchelmeister commited on
Commit
47582f6
1 Parent(s): 2689208

add possibility to run in container

Browse files
annotation-preprocessing/Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.7
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ RUN apt-get update
6
+ RUN apt-get install libgl1 -y
7
+
8
+ COPY requirements.txt ./
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ COPY *.py .
12
+
13
+ CMD sh -c "python 0_fetch_from_database.py && python 1_splitting_into_patches.py"
annotation-preprocessing/docker-compose.yml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ version: "3" # optional since v1.27.0
2
+ services:
3
+ preprocess:
4
+ build: .
5
+ volumes:
6
+ - ./out/:/usr/src/app/out:z
7
+ - ./in/:/usr/src/app/in:z
8
+ env_file:
9
+ - .env
10
+