FROM python:3.10-slim | |
COPY . /app | |
WORKDIR /app | |
USER root | |
RUN pip install -r requirements.txt | |
RUN chmod -R 777 /app | |
EXPOSE 7860 | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |
FROM python:3.10-slim | |
COPY . /app | |
WORKDIR /app | |
USER root | |
RUN pip install -r requirements.txt | |
RUN chmod -R 777 /app | |
EXPOSE 7860 | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |