Spaces:
Runtime error
Runtime error
chg:server
Browse files- Dockerfile +8 -2
- app/index.html +2 -0
Dockerfile
CHANGED
|
@@ -7,12 +7,18 @@ FROM jgwill/ubuntu:22.04-py3.10-ml-lzma
|
|
| 7 |
WORKDIR /code
|
| 8 |
|
| 9 |
COPY ./requirements.txt /code/requirements.txt
|
| 10 |
-
COPY ./app /code/app
|
| 11 |
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
|
|
|
|
| 7 |
WORKDIR /code
|
| 8 |
|
| 9 |
COPY ./requirements.txt /code/requirements.txt
|
| 10 |
+
#COPY ./app /code/app
|
| 11 |
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 13 |
|
| 14 |
+
|
| 15 |
+
RUN npm install http-server -g
|
| 16 |
+
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
#CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 22 |
+
CMD ["http-server", "app", "-p", "7860","--host","0.0.0.0"]
|
| 23 |
|
| 24 |
|
app/index.html
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ALLO
|
| 2 |
+
|