uni-api / Dockerfile
yym68686's picture
resolve conflicts
0385676
raw
history blame contribute delete
463 Bytes
FROM python:3.10.13 AS builder
COPY ./requirements.txt /home
RUN pip install -r /home/requirements.txt
FROM python:3.10.13-slim-bullseye
EXPOSE 8000
WORKDIR /home
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
COPY . /home
RUN mkdir -p /data
RUN chmod 777 /data
ENV WATCHFILES_FORCE_POLLING=true
ENTRYPOINT ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--reload", "--reload-include", "*.yaml"]