-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (31 loc) · 1.03 KB
/
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
44
#FROM python:3.8 AS builder
#RUN apt-get update && apt-get install -y --no-install-recommends \
# g++ \
# wget \
# unzip \
#&& rm -rf /var/lib/apt/lists/*
#COPY requirements.txt .
#RUN pip wheel --no-cache-dir --wheel-dir /wheels/ -r requirements.txt git+https://github.com/pgmikhael/Sybil.git
FROM python:3.8-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
wget \
unzip \
git \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6 -y
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
RUN git clone https://github.com/pgmikhael/Sybil.git && cd Sybil && pip install . && cd ..
RUN apt-get update && apt-get install -y --no-install-recommends \
dcmtk \
python3-sklearn-lib \
&& rm -rf /var/lib/apt/lists/*
#COPY --from=builder /wheels /wheels
#RUN pip install --no-cache /wheels/* && rm -rf /wheels/
COPY . .
ENV NAME ark
EXPOSE 5000
ENTRYPOINT ["python", "main.py", "--config", "api/configs/sybil.json"]