forked from ovchynnikov/load-bot-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
20 lines (14 loc) · 862 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.12-slim
LABEL org.opencontainers.image.source="https://github.com/ovchynnikov/load-bot-linux" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.title="Social media content download bot" \
org.opencontainers.image.description="Telegram bot to download videos from tiktok, x(twitter), reddit, youtube shorts, instagram reels and many more"
RUN --mount=type=bind,target=/tmp/requirements.txt,source=src/requirements.txt \
apt-get update && apt-get install --no-install-recommends -y ffmpeg && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
python -m pip install --no-cache-dir -r /tmp/requirements.txt
COPY src /bot
WORKDIR /bot
# https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
ENV PYTHONUNBUFFERED=1
CMD ["python", "main.py"]