Add movie Bot for Telegram

This commit is contained in:
2024-07-16 23:07:56 +02:00
parent 84e3344d49
commit a421d3b292
7 changed files with 599 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
FROM python:alpine
ADD requirements.txt /app/requirements.txt
RUN apk update && apk upgrade && \
apk add --no-cache bash && \
rm -rf /var/cache/apk/* && \
set -ex && \
python -m venv /env && \
/env/bin/pip install --upgrade pip && \
/env/bin/pip install --no-cache-dir -r /app/requirements.txt && \
runDeps="$(scanelf --needed --nobanner --recursive /env \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| sort -u \
| xargs -r apk info --installed \
| sort -u)" && \
apk add --virtual rundeps $runDeps && \
apk del rundeps
ADD . /app
WORKDIR /app
ENV VIRTUAL_ENV=/env
ENV PATH=/env/bin:$PATH
CMD ["python", "main.py"]