xinference / Dockerfile2
zhengr's picture
Rename Dockerfile to Dockerfile2
e06046e verified
raw
history blame contribute delete
384 Bytes
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"]