FROM python:3.8 WORKDIR /app COPY ./requirements.txt /app/requirements.txt RUN pip install -r requirements.txt EXPOSE 7860 ENV PYTHONUNBUFFERED 1 COPY app /app CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] # works but limited