FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py . COPY mcq_validator.py . RUN --mount=type=secret,id=VALIDATE_KEY,mode=0444,required=true \ cat /run/secrets/VALIDATE_KEY > /test EXPOSE 7860 CMD ["python", "app.py"]