initial verstion
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user