Browse Source

Add dependencies

master
Drew Short 4 years ago
parent
commit
d5138e7e50
  1. 6
      Dockerfile

6
Dockerfile

@ -8,7 +8,7 @@ RUN git clone --recurse-submodules https://github.com/azlux/botamusique.git . &&
FROM python:3-alpine AS python-builder
WORKDIR /app
COPY --from=source /app .
RUN apk add --no-cache ffmpeg-dev gcc git jpeg-dev musl-dev opus-dev zlib-dev
RUN apk add --no-cache ffmpeg-dev gcc git jpeg-dev musl-dev zlib-dev
RUN python3 -m venv venv \
&& venv/bin/pip install wheel opuslib protobuf \
&& venv/bin/pip install -r requirements.txt
@ -25,11 +25,13 @@ RUN npm install \
FROM python:3-alpine
ENV BAM_CONFIG_file="/app/configuration.ini"
ENV BAM_CERTIFICATE="/app/botamusique.pem"
ENV BAM_DB="/data/data.db"
ENV BAM_MUSIC_DB="/data/music.db"
WORKDIR /app
COPY --from=python-builder /app .
COPY --from=node-builder /app/static static
COPY --from=node-builder /app/templates templates
RUN apk add --no-cache bash libmagic ffmpeg
RUN apk add --no-cache bash gcc ffmpeg libmagic opus-dev
RUN venv/bin/python scripts/translate_templates.py --lang-dir /app/lang --template-dir /app/templates
ENTRYPOINT [ "/app/entrypoint.sh" ]
CMD ["/app/venv/bin/python", "/app/mumbleBot.py"]
Loading…
Cancel
Save