FROM python:3.9 | |
USER root | |
COPY app/* /app/ | |
RUN mkdir /.cache && chmod -R 777 /.cache | |
RUN pip install requests | |
RUN pip install fastapi | |
RUN pip install uvicorn[standard] | |
EXPOSE 7860 | |
ENTRYPOINT ["python","/app/app.py"] | |
FROM python:3.9 | |
USER root | |
COPY app/* /app/ | |
RUN mkdir /.cache && chmod -R 777 /.cache | |
RUN pip install requests | |
RUN pip install fastapi | |
RUN pip install uvicorn[standard] | |
EXPOSE 7860 | |
ENTRYPOINT ["python","/app/app.py"] | |