Docker test
parent
ea114bedec
commit
2f0681c535
12
Dockerfile
12
Dockerfile
|
@ -1,9 +1,9 @@
|
||||||
FROM python:3.11-slim-bullseye AS python-builder
|
FROM python:3.11-slim-bullseye AS python-builder
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
WORKDIR /MumbleConciergeBot
|
WORKDIR /MumbleConciergeBot
|
||||||
RUN apt update && \
|
#RUN apt update && \
|
||||||
apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
|
# apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
# rm -rf /var/lib/apt/lists/*
|
||||||
COPY . /MumbleConciergeBot
|
COPY . /MumbleConciergeBot
|
||||||
RUN python3 -m venv venv \
|
RUN python3 -m venv venv \
|
||||||
&& venv/bin/pip install wheel \
|
&& venv/bin/pip install wheel \
|
||||||
|
@ -12,9 +12,9 @@ RUN python3 -m venv venv \
|
||||||
|
|
||||||
FROM python:3.11-slim-bullseye
|
FROM python:3.11-slim-bullseye
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt update && \
|
#RUN apt update && \
|
||||||
apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
|
# apt install --no-install-recommends -y opus-tools ffmpeg libmagic-dev curl tar && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
# rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=python-builder /MumbleConciergeBot /MumbleConciergeBot
|
COPY --from=python-builder /MumbleConciergeBot /MumbleConciergeBot
|
||||||
WORKDIR /MumbleConciergeBot
|
WORKDIR /MumbleConciergeBot
|
||||||
CMD ["venv/bin/python", "src/start.py"]
|
CMD ["venv/bin/python", "src/start.py"]
|
Loading…
Reference in New Issue