mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-24 23:34:44 +08:00
* step1 * remove * add pdm * going * going * going * Improved `extract_code_from_instagram_url` function * Remove terabox download function Due to server-side restrictions, the Terabox download function is currently does not work as intended. * Remove unused `parse_cookie_file` function This commit removes the `parse_cookie_file` function as it is no longer required following the removal of the Terabox download function. * define abstract class * basic upload done? * db operation * db operation * db operation * db operation * db operation * fix name_pattern regex of `extract_url_and_name` function * pre-commit * pre-push * pre-push * Refactor: Change single quotes to double quotes for name_pattern regex * add more methods * rename * use self._bot_msg * download done? * update deps * add entrance * runnable * fixes * fix * record usage fix * add cookies * fix settings * hint * hint * reset * rename * formats fix * update README.md * update * rename * rename --------- Co-authored-by: Sanuja Seneviratne <66342986+SanujaNS@users.noreply.github.com>
16 lines
391 B
Docker
16 lines
391 B
Docker
FROM python:3.12-alpine AS pybuilder
|
|
ADD pyproject.toml pdm.lock /build/
|
|
WORKDIR /build
|
|
RUN apk add alpine-sdk python3-dev musl-dev linux-headers
|
|
RUN pip install pdm
|
|
RUN pdm install
|
|
|
|
FROM python:3.12-alpine AS runner
|
|
WORKDIR /app
|
|
|
|
RUN apk update && apk add --no-cache ffmpeg aria2
|
|
COPY --from=pybuilder /build/.venv/lib/ /usr/local/lib/
|
|
COPY src /app
|
|
WORKDIR /app
|
|
|
|
CMD ["python" ,"main.py"]
|