1
0
mirror of https://github.com/azlux/botamusique synced 2024-11-23 13:56:17 +00:00
botamusique/Dockerfile
Anders Sildnes 73e52ba945 Use dockerignore instead of "rm -rf .git"
This reduces the number of layers in the dockerfile by one
2020-11-09 20:58:23 +01:00

22 lines
450 B
Docker

FROM python:slim
ENV DEBIAN_FRONTEND noninteractive
EXPOSE 8181
RUN apt update && \
apt install -y opus-tools ffmpeg libmagic-dev curl tar && \
rm -rf /var/lib/apt/lists/*
COPY . /botamusique
WORKDIR /botamusique
RUN python3 -m venv venv && \
venv/bin/pip install wheel && \
venv/bin/pip install -r requirements.txt
RUN chmod +x entrypoint.sh
ENTRYPOINT [ "/botamusique/entrypoint.sh" ]
CMD ["venv/bin/python", "mumbleBot.py"]