AravindSL1 commited on
Commit
3fb5c53
1 Parent(s): cce229c

Changed Host settings

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -1
Dockerfile CHANGED
@@ -2,10 +2,10 @@ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY . /app
6
-
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
 
9
  EXPOSE 7860
10
 
11
  ENV PORT 7860
 
2
 
3
  WORKDIR /app
4
 
 
 
5
  RUN pip install --no-cache-dir -r requirements.txt
6
 
7
+ COPY . /app
8
+
9
  EXPOSE 7860
10
 
11
  ENV PORT 7860
app.py CHANGED
@@ -9,5 +9,5 @@ app.layout = layout
9
  register_callbacks(app)
10
 
11
  if __name__ == '__main__':
12
- app.run_server(debug=False, host='0.0.0.0', port=7860)
13
 
 
9
  register_callbacks(app)
10
 
11
  if __name__ == '__main__':
12
+ app.run_server(debug=False, host=os.environ.get("HOST") or "0.0.0.0", port=os.environ.get("PORT") or 8080)
13