1
0
mirror of https://github.com/azlux/botamusique synced 2024-11-23 22:06:09 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
c7c87a02de fix path 2023-10-26 13:31:27 +02:00
010907f1b5 Rollback docker build change 2023-10-26 11:36:46 +02:00

View File

@ -11,27 +11,13 @@ RUN python3 -m venv venv \
&& venv/bin/pip install wheel \ && venv/bin/pip install wheel \
&& venv/bin/pip install -r requirements.txt && venv/bin/pip install -r requirements.txt
FROM ${ARCH}node:14-bullseye-slim AS node-builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /botamusique/web
COPY --from=python-builder /botamusique /botamusique
RUN npm install
RUN npm run build
FROM ${ARCH}python:3-slim-bullseye AS template-builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /botamusique
COPY --from=node-builder /botamusique /botamusique
RUN venv/bin/python scripts/translate_templates.py --lang-dir /botamusique/lang --template-dir /botamusique/web/templates
FROM python:3.11-slim-bullseye FROM python:3.11-slim-bullseye
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
EXPOSE 8181 EXPOSE 8181
RUN apt update && \ RUN apt update && \
apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \ apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
COPY --from=template-builder /botamusique /botamusique COPY --from=python-builder /botamusique /botamusique
WORKDIR /botamusique WORKDIR /botamusique
RUN chmod +x entrypoint.sh RUN chmod +x entrypoint.sh