-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
35 lines (27 loc) · 1.13 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
# Start with an NVIDIA CUDA image that includes the necessary CUDA drivers and libraries
FROM nvcr.io/nvidia/pytorch:23.12-py3
# Note: The base image already includes CUDA, so there's no need to install CUDA or NVIDIA drivers manually
# Use a label to maintain metadata
LABEL maintainer="Umberto Junior Mele <u.mele.coding@gmail.com>"
# Set the working directory in the container to /app
WORKDIR /app
# Copy the version1.1 directory contents into the container at /app
COPY version1.1/ /app/
# Install git
RUN apt-get update && apt-get install -y git
# Install system packages
RUN apt-get update && apt-get install -y \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update -y && apt-get install -y \
libglib2.0-0
# Update pip and install the requirements
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt \
&& pip install 'pyconcorde @ git+https://github.com/jvkersch/pyconcorde' \
&& pip install opencv-python \
&& pip install torchsummary
# 1. download the autofix tool
RUN pip install opencv-fixer==0.2.5
# 2. execute
RUN python -c "from opencv_fixer import AutoFix; AutoFix()"