-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
61 lines (53 loc) · 3.07 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#==============================================================================#
# Author: Dominik Müller #
# Copyright: 2024 AG-RAIMIA-Müller, University of Augsburg, #
# University of Augsburg #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
#==============================================================================#
#-----------------------------------------------------#
# Information & System Base #
#-----------------------------------------------------#
# Base image
FROM tensorflow/tensorflow:latest-gpu
# Meta information
LABEL authors="Dominik Müller"
LABEL contact="[email protected]"
LABEL repository="https://github.com/frankkramer-lab/DeepGleason"
LABEL license="GNU General Public License v3.0"
#-----------------------------------------------------#
# Setup #
#-----------------------------------------------------#
# Setup system environment variables
ENV DEBIAN_FRONTEND=noninteractive
ENV PIP_ROOT_USER_ACTION=ignore
# Copy git repository into container
ADD . /root/DeepGleason
# Install required software dependencies (cv2)
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-dev python3-opencv libpython3.10-dev libvips-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install & Update Python pip
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3.10 get-pip.py
RUN python3.10 -m pip install pip --upgrade
# Install DeepGleason from local git repo
RUN python3.10 -m pip install -r /root/DeepGleason/requirements.txt
# Create working directory
VOLUME ["/data"]
WORKDIR "/root/DeepGleason/"
#-----------------------------------------------------#
# Startup #
#-----------------------------------------------------#
ENTRYPOINT ["python3.10 code/main.py --input /data/ --output /data/ --model models/model.ConvNeXtBase --predictions /data/predictions.csv"]