Milano Hyacinthe commited on
Commit
a78bbf8
·
1 Parent(s): 960bd85

Updating Dockerfile for more info

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -2
  2. demo/app_januspro.py +2 -3
Dockerfile CHANGED
@@ -4,7 +4,8 @@ FROM pytorch/pytorch:latest
4
  # Create a new user
5
  RUN useradd -m -u 1000 user
6
  USER user
7
- ENV HOME="/home/user"
 
8
 
9
  # Set the working directory inside the container
10
  WORKDIR /app
@@ -13,7 +14,7 @@ WORKDIR /app
13
  COPY --chown=user . /app
14
 
15
  # Install necessary Python packages
16
- RUN pip install -e .[gradio]
17
 
18
  # Set the entrypoint for the container to launch your Gradio app
19
  CMD ["python", "demo/app_januspro.py"]
 
4
  # Create a new user
5
  RUN useradd -m -u 1000 user
6
  USER user
7
+ ENV HOME=/home/user \
8
+ PATH=/home/user/.local/bin:$PATH
9
 
10
  # Set the working directory inside the container
11
  WORKDIR /app
 
14
  COPY --chown=user . /app
15
 
16
  # Install necessary Python packages
17
+ RUN pip install --no-cache-dir -e .[gradio]
18
 
19
  # Set the entrypoint for the container to launch your Gradio app
20
  CMD ["python", "demo/app_januspro.py"]
demo/app_januspro.py CHANGED
@@ -242,6 +242,5 @@ with gr.Blocks() as demo:
242
  )
243
 
244
  # demo.launch(share=True)
245
- # demo.queue(concurrency_count=1, max_size=10).launch(server_name="0.0.0.0", server_port=37906, root_path="/path")
246
- demo.queue(concurrency_count=1, max_size=10).launch(server_name="0.0.0.0", server_port=7860
247
- )
 
242
  )
243
 
244
  # demo.launch(share=True)
245
+ # demo.queue(concurrency_count=1, max_size=10).launch(server_name="0.0.0.0", server_port=37906, root_path="/path", share=True)
246
+ demo.queue(concurrency_count=1, max_size=10).launch(server_name="0.0.0.0", server_port=7860, share=True)