Dockerfile
This commit is contained in:
parent
a808714876
commit
b17b5ed7a4
15
Dockerfile
15
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user