File size: 384 Bytes
7b94660
081cfa2
 
cfc4034
081cfa2
49f3ab0
 
 
 
 
 
ee4f24c
5f62bcf
 
081cfa2
ee4f24c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"]