ner-sentiment_german / Dockerfile
schneegriesel
Demo Version, 1 sentence
4ec7d16
raw
history blame contribute delete
535 Bytes
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"]