Spaces:
Running
Running
File size: 457 Bytes
7b94660 081cfa2 cfc4034 081cfa2 49f3ab0 ee4f24c 49f3ab0 31937f5 49f3ab0 5f62bcf 081cfa2 ee4f24c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM xprobe/xinference:nightly-main-cpu
# Copy the entry point script
COPY ./entrypoint.sh inference/entrypoint.sh
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
RUN pwd
RUN ls
RUN pip install litellm
RUN pip install 'litellm[proxy]'
EXPOSE 9997
# 设置ENTRYPOINT
RUN chmod +x /home/user/app/entrypoint.sh
ENTRYPOINT ["sh", "/home/user/app/entrypoint.sh"]
|