Dockerfile

This commit is contained in:
Ján Pták 2026-08-15 00:59:53 +02:00
parent a808714876
commit b17b5ed7a4

View File

@ -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