Spaces:
Sleeping
Sleeping
AravindSL1
commited on
Commit
•
3fb5c53
1
Parent(s):
cce229c
Changed Host settings
Browse files- Dockerfile +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=
|
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 |
|