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

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