Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +1 -13
Dockerfile
CHANGED
@@ -1,15 +1,3 @@
|
|
1 |
-
# Становлюємо env змінну для кешу
|
2 |
-
# RUN mkdir -p /cache
|
3 |
-
# RUN chmod -R 777 /cache
|
4 |
-
|
5 |
-
# Становлюємо папку для result
|
6 |
-
# RUN mkdir -p /results
|
7 |
-
# RUN chmod -R 777 /results
|
8 |
-
|
9 |
-
# Становлюємо папку для сбереження моделі
|
10 |
-
# RUN mkdir -p /fine_tuned_model
|
11 |
-
# RUN chmod -R 777 /fine_tuned_model
|
12 |
-
|
13 |
# Базовий образ з Python
|
14 |
FROM python:3.10-slim
|
15 |
|
@@ -32,7 +20,7 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
32 |
RUN pip install --upgrade pip
|
33 |
|
34 |
# Встановлення необхідних пакетів
|
35 |
-
RUN pip install torch transformers datasets tqdm
|
36 |
RUN pip install transformers[torch]
|
37 |
|
38 |
# Скопіювати ваш Python-код у контейнер
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Базовий образ з Python
|
2 |
FROM python:3.10-slim
|
3 |
|
|
|
20 |
RUN pip install --upgrade pip
|
21 |
|
22 |
# Встановлення необхідних пакетів
|
23 |
+
RUN pip install torch time transformers datasets tqdm
|
24 |
RUN pip install transformers[torch]
|
25 |
|
26 |
# Скопіювати ваш Python-код у контейнер
|