chomakov commited on
Commit
b01d663
·
1 Parent(s): 6a23cd5

Upload 2 files

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -1,19 +1,16 @@
1
- FROM python:3.10.10
2
 
3
- RUN python3 -m pip install --no-cache-dir --upgrade pip
4
-
5
- # Copy the requirements.txt file into the Docker image
6
- COPY requirements.txt .
7
 
8
- # Now the requirements.txt file will be available in the image
9
- RUN python3 -m pip install --no-cache-dir --upgrade -r requirements.txt
 
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:7860", "--allow-websocket-origin", "0.0.0.0:7860"]
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