Dockerfile test
parent
c9ad3934e5
commit
f2bc0b9fe4
14
Dockerfile
14
Dockerfile
|
@ -1,18 +1,20 @@
|
||||||
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
|
||||||
|
|
||||||
COPY . /MumbleConciergeBot
|
|
||||||
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
|
||||||
RUN python3 -m venv venv \
|
RUN python3 -m venv venv \
|
||||||
&& venv/bin/pip install wheel \
|
&& venv/bin/pip install wheel \
|
||||||
&& venv/bin/pip install -r requirements.txt
|
&& venv/bin/pip install -r requirements.txt
|
||||||
|
|
||||||
ENV PYTHONPATH=/MumbleConciergeBot
|
|
||||||
|
|
||||||
ENTRYPOINT ["tail", "-f", "/dev/null"]
|
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"]
|
CMD ["venv/bin/python", "src/start.py"]
|
Loading…
Reference in New Issue