Spaces:
Sleeping
Sleeping
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 | |
EXPOSE 9997 | |
# 设置ENTRYPOINT | |
RUN chmod +x /home/user/app/entrypoint.sh | |
ENTRYPOINT ["sh", "/home/user/app/entrypoint.sh"] | |