student2222333051 commited on
Commit
b0e5f93
·
verified ·
1 Parent(s): 22143bf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -3
Dockerfile CHANGED
@@ -1,6 +1,8 @@
 
 
1
  FROM python:3.10
2
 
3
- # PDF libraries
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
6
  poppler-utils \
@@ -8,12 +10,19 @@ RUN apt-get update && apt-get install -y \
8
 
9
  WORKDIR /code
10
 
11
- # Copy everything
12
  COPY . .
13
 
14
- # Install python packages
 
 
 
 
15
  RUN pip install --no-cache-dir -r requirements.txt
 
16
 
 
17
  EXPOSE 7860
18
 
 
19
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Dockerfile
2
+
3
  FROM python:3.10
4
 
5
+ # PDF және жүйелік кітапханалар
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  poppler-utils \
 
10
 
11
  WORKDIR /code
12
 
13
+ # 1️⃣ Жобаның барлық файлдарын көшіру
14
  COPY . .
15
 
16
+ # 2️⃣ Fine-tuned BART моделін контейнерге қосу
17
+ # (fine_tune.py-дан кейін пайда болған папка)
18
+ COPY bart-finetuned-arxiv /code/bart-finetuned-arxiv
19
+
20
+ # 3️⃣ Python пакеттерін орнату
21
  RUN pip install --no-cache-dir -r requirements.txt
22
+ RUN pip install torch transformers PyPDF2
23
 
24
+ # 4️⃣ FastAPI портын ашу
25
  EXPOSE 7860
26
 
27
+ # 5️⃣ Серверді іске қосу
28
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]