Leodass1433 commited on
Commit
8e7daff
·
verified ·
1 Parent(s): 941f38d

fix: use /app/.venv/bin/python entrypoint and set PATH

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -10,8 +10,9 @@ WORKDIR /app
10
  COPY --chown=user:user . /app
11
 
12
  USER user
 
13
  ENV GRADIO_SERVER_NAME=0.0.0.0
14
  ENV GRADIO_SERVER_PORT=7860
15
 
16
- ENTRYPOINT ["python", "app.py"]
17
  EXPOSE 7860
 
10
  COPY --chown=user:user . /app
11
 
12
  USER user
13
+ ENV PATH="/app/.venv/bin:$PATH"
14
  ENV GRADIO_SERVER_NAME=0.0.0.0
15
  ENV GRADIO_SERVER_PORT=7860
16
 
17
+ ENTRYPOINT ["/app/.venv/bin/python", "app.py"]
18
  EXPOSE 7860