Files
welcomecenterbot/Dockerfile

21 lines
506 B
Docker
Raw Normal View History

2024-09-27 09:48:15 +03:00
# Use a single stage
FROM python:slim
2024-01-06 14:25:35 +03:00
2023-09-11 23:04:53 +03:00
WORKDIR /app
2024-01-06 14:25:35 +03:00
2024-02-12 15:50:35 +03:00
COPY requirements.txt .
2024-01-06 14:25:35 +03:00
2024-09-27 09:32:25 +03:00
# Install system dependencies required for building Python packages
2024-09-28 12:06:24 +03:00
RUN apt-get update && apt-get install -y --no-install-recommends wget gcc libffi-dev libssl-dev
2024-09-27 09:32:25 +03:00
# Install Python dependencies including redis with hiredis support
2024-09-27 08:44:13 +03:00
RUN pip install --no-cache-dir -r requirements.txt
2024-09-26 23:58:11 +03:00
2024-09-28 12:06:24 +03:00
# Download and install the Russian language model
RUN python -m spacy download ru_core_news_md
2024-02-12 15:50:35 +03:00
COPY . .
EXPOSE 8080
2024-09-26 23:58:11 +03:00
CMD ["python", "main.py"]