L3ul commited on
Commit
3914d72
·
verified ·
1 Parent(s): bec2698

Add NO_PROXY env + share=True for Gradio Docker localhost check

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -15,10 +15,12 @@ RUN pip install --no-cache-dir -r requirements.txt
15
  # Copy app
16
  COPY . .
17
 
18
- # Tell Gradio we are on HF Spaces (skips localhost accessibility check)
19
  ENV SPACE_ID=L3ul/RxnIM
20
  ENV GRADIO_SERVER_NAME=0.0.0.0
21
  ENV GRADIO_SERVER_PORT=7860
 
 
22
  EXPOSE 7860
23
 
24
  CMD ["python", "app.py"]
 
15
  # Copy app
16
  COPY . .
17
 
18
+ # Gradio environment for HF Spaces Docker
19
  ENV SPACE_ID=L3ul/RxnIM
20
  ENV GRADIO_SERVER_NAME=0.0.0.0
21
  ENV GRADIO_SERVER_PORT=7860
22
+ ENV NO_PROXY=localhost,127.0.0.1
23
+ ENV no_proxy=localhost,127.0.0.1
24
  EXPOSE 7860
25
 
26
  CMD ["python", "app.py"]