File size: 535 Bytes
4ec7d16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.12.3

# Systempakete installieren
RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    git \
    && rm -rf /var/lib/apt/lists/*

# Arbeitsverzeichnis setzen
WORKDIR /app

# Dateien kopieren
COPY requirements.txt .
COPY main.py .
COPY texts.txt .

# requirements.txt installieren

RUN pip install --upgrade pip setuptools wheel
RUN pip install -r requirements.txt

# spaCy Sprachmodell (Deutsch) installieren
RUN python -m spacy download de_core_news_sm

# Startbefehl
CMD ["python", "main.py"]