From 68ad131870d503ee5ee7ba174973e25d47a98c52 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Tue, 7 Apr 2020 16:07:30 -0500 Subject: [PATCH] Added dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8bdf2bc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3-alpine + +ARG VERSION=6.1.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 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"]