You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
580 B

  1. FROM python:3-alpine
  2. ARG VERSION=7.1
  3. WORKDIR /app
  4. RUN apk add --no-cache git ffmpeg-dev zlib-dev jpeg-dev gcc musl-dev
  5. RUN git clone --recurse-submodules https://github.com/azlux/botamusique.git . && git checkout $VERSION
  6. RUN cp web/templates/index.template.html web/templates/index.en_US.html
  7. RUN python3 -m venv venv
  8. RUN venv/bin/pip install wheel opuslib protobuf
  9. RUN venv/bin/pip install -r requirements.txt
  10. FROM python:3-alpine
  11. WORKDIR /app
  12. COPY --from=0 /app .
  13. RUN apk add --no-cache gcc opus-dev libmagic ffmpeg
  14. ENTRYPOINT ["/app/venv/bin/python", "/app/mumbleBot.py"]