Update Dockerfile
Browse files- Dockerfile +15 -1
Dockerfile
CHANGED
|
@@ -1,12 +1,26 @@
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
COPY . /app
|
| 6 |
|
|
|
|
| 7 |
RUN pip install --upgrade pip
|
| 8 |
-
RUN pip install -r requirements.txt
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
EXPOSE 7860
|
| 11 |
|
|
|
|
| 12 |
CMD ["python", "api.py"]
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
+
# katalog aplikacji
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# kopiowanie plik贸w projektu
|
| 7 |
COPY . /app
|
| 8 |
|
| 9 |
+
# aktualizacja pip
|
| 10 |
RUN pip install --upgrade pip
|
|
|
|
| 11 |
|
| 12 |
+
# instalacja bibliotek
|
| 13 |
+
RUN pip install torch
|
| 14 |
+
RUN pip install diffusers
|
| 15 |
+
RUN pip install transformers
|
| 16 |
+
RUN pip install accelerate
|
| 17 |
+
RUN pip install safetensors
|
| 18 |
+
RUN pip install pillow
|
| 19 |
+
RUN pip install flask
|
| 20 |
+
RUN pip install deep-translator
|
| 21 |
+
|
| 22 |
+
# port wymagany przez HuggingFace
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
+
# uruchomienie backendu
|
| 26 |
CMD ["python", "api.py"]
|