HibiAPI / Dockerfile
DengFengLai's picture
DF.
0a1b571
raw
history blame contribute delete
333 Bytes
FROM python:bullseye
EXPOSE 7860
ENV PORT=7860 \
PROCS=1 \
GENERAL_SERVER_HOST=0.0.0.0
COPY . /hibi
WORKDIR /hibi
RUN pip install .
CMD hibiapi run --port $PORT --workers $PROCS
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD httpx --verbose --follow-redirects http://127.0.0.1:${PORT}