Test_Space / Dockerfile
DarkSting's picture
Update Dockerfile
8895a8b verified
raw
history blame contribute delete
328 Bytes
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"]