Docker test

main
L_DelOff 2024-10-20 17:53:02 +03:00
parent ea114bedec
commit 2f0681c535
1 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
FROM python:3.11-slim-bullseye AS python-builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /MumbleConciergeBot
RUN apt update && \
apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
rm -rf /var/lib/apt/lists/*
#RUN apt update && \
# apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
# rm -rf /var/lib/apt/lists/*
COPY . /MumbleConciergeBot
RUN python3 -m venv venv \
&& venv/bin/pip install wheel \
@ -12,9 +12,9 @@ RUN python3 -m venv venv \
FROM python:3.11-slim-bullseye
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && \
apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
rm -rf /var/lib/apt/lists/*
#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"]