Tiresias/evaluate/Dockerfile

36 lines
911 B
Docker

# Use an official PyTorch image with CUDA support (optional)
FROM pytorch/pytorch:2.2.0-cuda11.8-cudnn8-runtime
# Set working directory
WORKDIR /app
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Use the Conda pip path explicitly
RUN /opt/conda/bin/pip install --upgrade pip && \
/opt/conda/bin/pip install --force-reinstall --no-cache-dir "numpy<2.0" \
transformers==4.39.0 \
accelerate==0.30.0 \
torch==2.2.0 \
torchvision==0.17.0 \
datasets \
matplotlib \
scikit-learn \
mediapy \
pillow
RUN /opt/conda/bin/conda install -y -c conda-forge opencv
RUN /opt/conda/bin/pip install --force-reinstall --no-cache-dir tqdm
# Copy project files into container
COPY evaluate.py /app/evaluate.py
# Default command (you can override with docker run)
CMD ["python", "/app/evaluate.py"]