API / Dockerfile
Yuuki0125's picture
Create API
0ad3bab
raw
history blame contribute delete
269 Bytes
FROM python:3.10.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN python -m pip install "pymongo[srv]"
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]