mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 22:06:09 +00:00
Compare commits
2 Commits
ff93039345
...
4b2030dcfd
Author | SHA1 | Date | |
---|---|---|---|
4b2030dcfd | |||
c750ed93de |
27
Dockerfile
27
Dockerfile
@ -1,20 +1,25 @@
|
|||||||
FROM python:slim
|
FROM python:3-slim-bullseye AS python-builder
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
WORKDIR /botamusique
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y gcc g++ ffmpeg libjpeg-dev libmagic-dev opus-tools zlib1g-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY . /botamusique
|
||||||
|
|
||||||
|
RUN python3 -m venv venv \
|
||||||
|
&& venv/bin/pip install wheel \
|
||||||
|
&& venv/bin/pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
|
FROM python:3-slim-bullseye
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
EXPOSE 8181
|
EXPOSE 8181
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y opus-tools ffmpeg libmagic-dev curl tar && \
|
apt install -y opus-tools ffmpeg libmagic-dev curl tar && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY --from=python-builder /botamusique /botamusique
|
||||||
COPY . /botamusique
|
|
||||||
|
|
||||||
WORKDIR /botamusique
|
WORKDIR /botamusique
|
||||||
|
|
||||||
RUN python3 -m venv venv && \
|
|
||||||
venv/bin/pip install wheel && \
|
|
||||||
venv/bin/pip install -r requirements.txt
|
|
||||||
|
|
||||||
RUN chmod +x entrypoint.sh
|
RUN chmod +x entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT [ "/botamusique/entrypoint.sh" ]
|
ENTRYPOINT [ "/botamusique/entrypoint.sh" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user