mpebtraining / Dockerfile
jeyanthangj2004's picture
Update Dockerfile
e0f6328 verified
raw
history blame contribute delete
508 Bytes
FROM python:3.10-slim
# Ensure logs are printed immediately
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Install system dependencies for OpenCV and Git
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy files
COPY requirements.txt .
COPY app.py .
COPY yolov8_mpeb.yaml .
COPY yolov8_mpeb_modules.py .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Run the training script
CMD ["python", "app.py"]