докерфайл

main
L_DelOff 2024-04-18 16:48:04 +03:00
parent e9ecddb595
commit e31bf6cf34
1 changed files with 22 additions and 0 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM python:3.11-slim-bullseye AS python-builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /MumbleConciergeBot
RUN apt-get update \
&& apt-get install --no-install-recommends -y gcc g++ ffmpeg libjpeg-dev libmagic-dev opus-tools zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
COPY . /MumbleConciergeBot
RUN python3 -m venv venv \
&& venv/bin/pip install wheel \
&& venv/bin/pip install -r requirements.txt
FROM python:3.11-slim-bullseye
ENV DEBIAN_FRONTEND noninteractive
EXPOSE 8181
RUN apt update && \
apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
rm -rf /var/lib/apt/lists/*
COPY --from=python-builder /MumbleConciergeBot /MumbleConciergeBot
WORKDIR /MumbleConciergeBot
CMD ["venv/bin/python", "src/start.py"]