-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (22 loc) · 898 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
25
26
27
28
29
# Use an NGC base image with CUDA and cuDNN compatible with PyTorch 2.2.2
FROM nvcr.io/nvidia/pytorch:24.01-py3
# Set the working directory
WORKDIR /workspace
# Install any additional dependencies if necessary
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libsm6 \
libxext6 \
git \
curl \
ca-certificates -y && \
rm -rf /var/lib/apt/lists/*
# Copy the requirements.txt file from the host to the image
COPY requirements.txt /workspace/
# Install Python dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN python -c "from opencv_fixer import AutoFix; AutoFix()"
# Clone the facenet-pytorch repository into a directory named facenet_pytorch
RUN git clone https://github.com/timesler/facenet-pytorch.git facenet_pytorch
# Copy your application files (from your host to your image)
COPY . /workspace