File size: 342 Bytes
a8baba7
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime

# Install dependencies
COPY requirements.txt /tmp/requirements.txt
RUN python -m pip install --upgrade pip && \
    python -m pip install -r /tmp/requirements.txt

# Copy source code
WORKDIR /app
RUN mkdir /app/cache
COPY ./app.py /app/app.py

# Run the application
CMD ["python", "app.py"]