22 lines
392 B
Docker
22 lines
392 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN python -m venv /opt/venv
|
|
ENV PATH="/opt/venv/bin:$PATH"
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
RUN python -m spacy download de_core_news_sm
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p /app/data
|
|
|
|
CMD ["python", "bot.py"]
|