team222 / Dockerfile
ylop's picture
Deploy 2M step LNN training with optimized GPU utilization
28dbd6d verified
raw
history blame
715 Bytes
FROM python:3.11
# Install system dependencies for PyBullet/OpenGL
RUN apt-get update && apt-get install -y \
build-essential \
libgl1-mesa-dev \
libgl1-mesa-glx \
libglew-dev \
libosmesa6-dev \
software-properties-common \
patchelf \
git \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
# Copy requirements first for caching
COPY requirements.txt .
# Install Python dependencies
# Note: PyTorch with CUDA support is handled by the requirements.txt index-url
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Set permissions
RUN chmod +x train_liquid.py
# Run the training script
CMD ["python", "train_liquid.py"]