Files
iphone_to_jpeg_bot/Dockerfile
2026-03-26 19:06:08 +04:00

29 lines
554 B
Docker

# Use a specific version for stability
FROM python:3.11-slim
# Install system dependencies for image processing
RUN apt-get update && apt-get install -y \
libheif-dev \
libde265-0 \
libjpeg62-turbo \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install python dependencies
# Using --no-cache-dir to keep the image small
RUN pip install --no-cache-dir \
aiogram \
pillow-heif \
Pillow \
prometheus_client \
aiohttp
# Copy your bot code
COPY bot.py .
# Standardize ports
EXPOSE 8000 8080
CMD ["python", "bot.py"]