mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 13:56:17 +00:00
Compare commits
2 Commits
100a5d66d9
...
9b9b4e40ce
Author | SHA1 | Date | |
---|---|---|---|
9b9b4e40ce | |||
81ff7c3039 |
@ -1,6 +1,6 @@
|
||||
ARG ARCH=
|
||||
|
||||
FROM ${ARCH}python:3-slim-buster AS source
|
||||
FROM ${ARCH}python:3-slim-bullseye AS source
|
||||
ARG VERSION=master
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
WORKDIR /botamusique
|
||||
@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y git
|
||||
RUN git clone --recurse-submodules https://github.com/azlux/botamusique.git . && git checkout $VERSION
|
||||
|
||||
|
||||
FROM ${ARCH}python:3-slim-buster AS python-builder
|
||||
FROM ${ARCH}python:3-slim-bullseye AS python-builder
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
WORKDIR /botamusique
|
||||
RUN apt-get update \
|
||||
@ -20,7 +20,7 @@ RUN python3 -m venv venv \
|
||||
&& venv/bin/pip install -r requirements.txt
|
||||
|
||||
|
||||
FROM ${ARCH}node:14-buster-slim AS node-builder
|
||||
FROM ${ARCH}node:14-bullseye-slim AS node-builder
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
WORKDIR /botamusique/web
|
||||
COPY --from=source /botamusique/web .
|
||||
@ -28,7 +28,7 @@ RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM ${ARCH}python:3-slim-buster AS template-builder
|
||||
FROM ${ARCH}python:3-slim-bullseye AS template-builder
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
WORKDIR /botamusique
|
||||
COPY --from=python-builder /botamusique .
|
||||
@ -36,7 +36,7 @@ COPY --from=node-builder /botamusique/templates templates
|
||||
RUN venv/bin/python scripts/translate_templates.py --lang-dir /botamusique/lang --template-dir /botamusique/templates
|
||||
|
||||
|
||||
FROM ${ARCH}python:3-slim-buster
|
||||
FROM ${ARCH}python:3-slim-bullseye
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
EXPOSE 8181
|
||||
WORKDIR /botamusique
|
||||
|
@ -1,6 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
command=( "${@}" )
|
||||
|
||||
if [ "$1" == "bash" ] || [ "$1" == "sh" ]; then
|
||||
exec "${@}"
|
||||
fi
|
||||
|
||||
if [ -n "$BAM_DB" ]; then
|
||||
command+=( "--db" "$BAM_DB" )
|
||||
fi
|
||||
|
@ -4,7 +4,7 @@ import os
|
||||
import hashlib
|
||||
import traceback
|
||||
from PIL import Image
|
||||
import youtube_dl
|
||||
import yt_dlp as youtube_dl
|
||||
import glob
|
||||
from io import BytesIO
|
||||
import base64
|
||||
|
@ -1,5 +1,5 @@
|
||||
import logging
|
||||
import youtube_dl
|
||||
import yt_dlp as youtube_dl
|
||||
from constants import tr_cli as tr
|
||||
import variables as var
|
||||
from media.item import item_builders, item_loaders, item_id_generators
|
||||
|
@ -1,5 +1,5 @@
|
||||
flask
|
||||
youtube-dl
|
||||
yt-dlp
|
||||
python-magic
|
||||
Pillow
|
||||
mutagen
|
||||
|
Loading…
Reference in New Issue
Block a user