Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- Dockerfile +7 -10
Dockerfile
CHANGED
|
@@ -1,19 +1,16 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
# Copy the requirements.txt file into the Docker image
|
| 6 |
-
COPY requirements.txt .
|
| 7 |
|
| 8 |
-
|
| 9 |
-
RUN python3 -m pip install --no-cache-dir --upgrade
|
|
|
|
| 10 |
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
-
CMD ["panel", "serve", "/GPT-4_PDF_summary.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "chomakov-gpt-4-pdf-summary.hf.space
|
| 14 |
-
|
| 15 |
|
| 16 |
RUN mkdir /.cache
|
| 17 |
RUN chmod 777 /.cache
|
| 18 |
RUN mkdir .chroma
|
| 19 |
-
RUN chmod 777 .chroma
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
|
| 3 |
+
WORKDIR /code
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
+
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
| 7 |
+
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
+
CMD ["panel", "serve", "code/GPT-4_PDF_summary.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "chomakov-gpt-4-pdf-summary.hf.space", "--allow-websocket-origin", "0.0.0.0:7860"]
|
|
|
|
| 12 |
|
| 13 |
RUN mkdir /.cache
|
| 14 |
RUN chmod 777 /.cache
|
| 15 |
RUN mkdir .chroma
|
| 16 |
+
RUN chmod 777 .chroma
|