forked from Cytomine-ULiege/S_CellDetect_Stardist_HE_ROI
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
24 lines (18 loc) · 815 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
FROM python:3.8-slim-bullseye
# Create the directories
RUN mkdir -p app/ models/ models/2D_versatile_HE/
# Install Stardist and tensorflow and its dependencies
COPY requirements.txt /tmp/
RUN pip install --upgrade pip
RUN pip install -r /tmp/requirements.txt
COPY config.json /models/2D_versatile_HE/config.json
COPY thresholds.json /models/2D_versatile_HE/thresholds.json
COPY weights_best.h5 /models/2D_versatile_HE/weights_best.h5
RUN chmod 444 /models/2D_versatile_HE/config.json
RUN chmod 444 /models/2D_versatile_HE/thresholds.json
RUN chmod 444 /models/2D_versatile_HE/weights_best.h5
# --------------------------------------------------------------------------------------------
# Install scripts
COPY descriptor.json /app/descriptor.json
COPY run.py /app/run.py
ENTRYPOINT ["python3", "/app/run.py"]