Spaces:
Build error
Build error
mphycx
commited on
Commit
·
6c20deb
1
Parent(s):
8c133e2
fix permission, rewerite cmd
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
FROM python:3.9-slim-bullseye as pdfgpt-chat-img
|
|
|
|
|
|
|
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
build-essential \
|
|
@@ -20,9 +22,6 @@ RUN pip3 install -r requirements_pytorch.txt
|
|
| 20 |
RUN pip3 install -r requirements_api.txt
|
| 21 |
RUN pip3 install -r requirements_app.txt
|
| 22 |
|
| 23 |
-
RUN mkdir -p /.jina
|
| 24 |
-
RUN chmod 777 /.jina
|
| 25 |
-
|
| 26 |
WORKDIR /app
|
| 27 |
|
| 28 |
COPY intfloat /app/intfloat
|
|
@@ -34,4 +33,4 @@ EXPOSE 8080
|
|
| 34 |
|
| 35 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
| 36 |
|
| 37 |
-
CMD
|
|
|
|
| 1 |
FROM python:3.9-slim-bullseye as pdfgpt-chat-img
|
| 2 |
+
RUN mkdir -p /.jina
|
| 3 |
+
RUN chmod 777 /.jina
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
build-essential \
|
|
|
|
| 22 |
RUN pip3 install -r requirements_api.txt
|
| 23 |
RUN pip3 install -r requirements_app.txt
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 25 |
WORKDIR /app
|
| 26 |
|
| 27 |
COPY intfloat /app/intfloat
|
|
|
|
| 33 |
|
| 34 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
| 35 |
|
| 36 |
+
CMD ["/bin/bash", "-c", "echo lc-serve deploy local api.py;echo streamlit run app.py --server.port=7860"]
|