File size: 328 Bytes
50087b1
 
 
 
 
 
 
 
 
 
9b475bb
5402c76
dcd5a35
 
 
50087b1
5402c76
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"]