20 lines
738 B
Docker
20 lines
738 B
Docker
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/*
|
|
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
|
|
#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"] |