zhengr commited on
Commit
ee4f24c
·
verified ·
1 Parent(s): 2a19e03

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -24,8 +24,6 @@ ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
24
  # Copy the entry point script
25
  COPY ./entrypoint.sh inference/entrypoint.sh
26
 
27
- RUN pwd
28
-
29
  ARG PIP_INDEX=https://pypi.org/simple
30
  RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \
31
  pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
@@ -44,12 +42,12 @@ ENV HOME=/home/user \
44
  PATH=/home/user/.local/bin:$PATH
45
  WORKDIR $HOME/app
46
  COPY --chown=user . $HOME/app
 
 
47
  RUN ls
48
 
49
  EXPOSE 9997
50
 
51
  # 设置ENTRYPOINT
52
- #RUN chmod +x /home/user/app/entrypoint.sh
53
- #ENTRYPOINT ["sh", "/home/user/app/entrypoint.sh"]
54
- RUN chmod +x /inference/entrypoint.sh
55
- ENTRYPOINT ["sh", "/inference/entrypoint.sh"]
 
24
  # Copy the entry point script
25
  COPY ./entrypoint.sh inference/entrypoint.sh
26
 
 
 
27
  ARG PIP_INDEX=https://pypi.org/simple
28
  RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \
29
  pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
 
42
  PATH=/home/user/.local/bin:$PATH
43
  WORKDIR $HOME/app
44
  COPY --chown=user . $HOME/app
45
+
46
+ RUN pwd
47
  RUN ls
48
 
49
  EXPOSE 9997
50
 
51
  # 设置ENTRYPOINT
52
+ RUN chmod +x /home/user/app/entrypoint.sh
53
+ ENTRYPOINT ["sh", "/home/user/app/entrypoint.sh"]