mirror of
https://github.com/qurator-spk/sbb_pixelwise_segmentation.git
synced 2025-07-01 22:50:15 +02:00
docker file to train model with desired cuda and cudnn
This commit is contained in:
parent
d6ccb83bf5
commit
ce4219e517
3 changed files with 84 additions and 1 deletions
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Use NVIDIA base image
|
||||
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
# Set environment variable for GitPython
|
||||
ENV GIT_PYTHON_REFRESH=quiet
|
||||
|
||||
# Install Python and pip
|
||||
RUN apt-get update && apt-get install -y --fix-broken && \
|
||||
apt-get install -y \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-distutils \
|
||||
python3-setuptools \
|
||||
python3-wheel && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy and install Python dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Specify the entry point
|
||||
CMD ["python3", "train.py", "with", "config_params_docker.json"]
|
Loading…
Add table
Add a link
Reference in a new issue