From b17b5ed7a4586fc36309f63a1d2117c82133819b Mon Sep 17 00:00:00 2001 From: jp170na Date: Sat, 15 Aug 2026 00:59:53 +0200 Subject: [PATCH] Dockerfile --- Dockerfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9730441..e026b59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,23 @@ ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 RUN apt-get update \ - && apt-get install -y --no-install-recommends git \ + && apt-get install -y --no-install-recommends \ + git \ + openssh-client \ && rm -rf /var/lib/apt/lists/* +# ZP Wiki je do kontajnera pripájaná ako /zpwiki +RUN git config --system --add safe.directory /zpwiki + +# CPU-only PyTorch. +RUN python -m pip install --no-cache-dir \ + torch==2.11.0 \ + --index-url https://download.pytorch.org/whl/cpu + COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +RUN python -m pip install --no-cache-dir \ + -r requirements.txt COPY app ./app COPY scripts ./scripts