mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 13:56:17 +00:00
73e52ba945
This reduces the number of layers in the dockerfile by one
22 lines
450 B
Docker
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"]
|