Spaces:
Runtime error
Runtime error
a.pourmand
commited on
Commit
•
b8ee1e0
1
Parent(s):
f1b564d
update docker
Browse files- Dockerfile +10 -0
- docker-compose.yaml +1 -1
Dockerfile
CHANGED
@@ -8,4 +8,14 @@ RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
|
8 |
|
9 |
COPY . /app
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
CMD ["python","app.py"]
|
|
|
8 |
|
9 |
COPY . /app
|
10 |
|
11 |
+
ENV PYTHONPATH=${HOME}/app \
|
12 |
+
PYTHONUNBUFFERED=1 \
|
13 |
+
GRADIO_ALLOW_FLAGGING=never \
|
14 |
+
GRADIO_NUM_PORTS=1 \
|
15 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
16 |
+
GRADIO_THEME=huggingface \
|
17 |
+
SYSTEM=spaces \
|
18 |
+
GRADIO_SERVER_PORT=9000
|
19 |
+
EXPOSE 9000
|
20 |
+
|
21 |
CMD ["python","app.py"]
|
docker-compose.yaml
CHANGED
@@ -9,4 +9,4 @@ services:
|
|
9 |
tty: true
|
10 |
stdin_open: true
|
11 |
ports:
|
12 |
-
-
|
|
|
9 |
tty: true
|
10 |
stdin_open: true
|
11 |
ports:
|
12 |
+
- 8007:9000
|