File size: 330 Bytes
0fef0a0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.10-slim
# Install g++
RUN apt-get update && apt-get install -y g++
WORKDIR /app
COPY ./ /app
# For GPU support:
RUN pip3 install --extra-index-url https://download.pytorch.org/whl/cu118 torch torchvision
RUN pip install -r requirements.txt
CMD fastapi run --reload --host=0.0.0.0 --port=7860
|