Spaces:
Runtime error
Runtime error
xke
commited on
Commit
·
ce768bb
1
Parent(s):
8134724
update Dockerfile for HF
Browse files- Dockerfile +13 -9
Dockerfile
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.11
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
COPY . .
|
| 11 |
-
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# reference: https://huggingface.co/spaces/key2xanadu/hello-world-docker
|
| 3 |
+
#
|
| 4 |
FROM python:3.11
|
| 5 |
+
|
| 6 |
+
WORKDIR /code
|
| 7 |
+
|
| 8 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 12 |
+
|
| 13 |
COPY . .
|
| 14 |
+
|
| 15 |
+
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|