mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 22:06:09 +00:00
Compare commits
No commits in common. "9b9b4e40ce7b077ebfa3b9be08d32025d1e43bc3" and "100a5d66d99917c90f8b401f3a9072208f79a66c" have entirely different histories.
9b9b4e40ce
...
100a5d66d9
@ -1,6 +1,6 @@
|
||||
ARG ARCH=
|
||||
|
||||
FROM ${ARCH}python:3-slim-bullseye AS source
|
||||
FROM ${ARCH}python:3-slim-buster 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-bullseye AS python-builder
|
||||
FROM ${ARCH}python:3-slim-buster 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-bullseye-slim AS node-builder
|
||||
FROM ${ARCH}node:14-buster-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-bullseye AS template-builder
|
||||
FROM ${ARCH}python:3-slim-buster 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-bullseye
|
||||
FROM ${ARCH}python:3-slim-buster
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
EXPOSE 8181
|
||||
WORKDIR /botamusique
|
||||
|
@ -1,10 +1,6 @@
|
||||
#!/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 yt_dlp as youtube_dl
|
||||
import youtube_dl
|
||||
import glob
|
||||
from io import BytesIO
|
||||
import base64
|
||||
|
@ -1,5 +1,5 @@
|
||||
import logging
|
||||
import yt_dlp as youtube_dl
|
||||
import 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
|
||||
yt-dlp
|
||||
youtube-dl
|
||||
python-magic
|
||||
Pillow
|
||||
mutagen
|
||||
|
Loading…
Reference in New Issue
Block a user