mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 13:56:17 +00:00
Compare commits
No commits in common. "c7c87a02de4e5c51c9e700da46519a5e8619eefa" and "c590ab8eb1930e2e527a3dff5a1ac15716837a18" have entirely different histories.
c7c87a02de
...
c590ab8eb1
16
Dockerfile
16
Dockerfile
@ -11,13 +11,27 @@ RUN python3 -m venv venv \
|
||||
&& venv/bin/pip install wheel \
|
||||
&& 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
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
EXPOSE 8181
|
||||
RUN apt update && \
|
||||
apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=python-builder /botamusique /botamusique
|
||||
COPY --from=template-builder /botamusique /botamusique
|
||||
WORKDIR /botamusique
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user