welcomecenterbot/Dockerfile
2024-09-29 09:55:58 +03:00

18 lines
410 B
Docker

# Use a single stage
FROM python:slim
WORKDIR /app
COPY requirements.txt .
# Install system dependencies required for building Python packages
RUN apt-get update && apt-get install -y --no-install-recommends wget gcc libffi-dev libssl-dev
# Install Python dependencies including redis with hiredis support
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["python", "main.py"]