| FROM python:3.10 | |
| # katalog aplikacji | |
| WORKDIR /app | |
| # kopiowanie plików projektu | |
| COPY . /app | |
| # aktualizacja pip | |
| RUN pip install --upgrade pip | |
| # instalacja bibliotek | |
| RUN pip install torch | |
| RUN pip install diffusers | |
| RUN pip install transformers | |
| RUN pip install accelerate | |
| RUN pip install safetensors | |
| RUN pip install pillow | |
| RUN pip install flask | |
| RUN pip install deep-translator | |
| # port wymagany przez HuggingFace | |
| EXPOSE 7860 | |
| # uruchomienie backendu | |
| CMD ["python", "api.py"] |