v0.2.6 Working on audio commands from api
This commit is contained in:
@@ -14,23 +14,32 @@ RUN cargo build --release
|
||||
# ==========
|
||||
# Packages
|
||||
# ==========
|
||||
FROM debian:bookworm-slim as packages
|
||||
FROM debian:bullseye-slim as packages
|
||||
# FROM debian:bookworm-slim as packages
|
||||
WORKDIR /packages
|
||||
|
||||
RUN apt-get update && apt-get install -y curl tar xz-utils && \
|
||||
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux > yt-dlp && \
|
||||
# curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux > yt-dlp && \
|
||||
curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2023.07.06/yt-dlp_linux > yt-dlp && \
|
||||
chmod +x yt-dlp && \
|
||||
curl -L https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz > ffmpeg.tar.xz && \
|
||||
# curl -L https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz > ffmpeg.tar.xz && \
|
||||
curl -L https://github.com/yt-dlp/FFmpeg-Builds/releases/download/autobuild-2023-06-30-14-08/ffmpeg-N-111310-g96d6990517-linux64-gpl.tar.xz > ffmpeg.tar.xz && \
|
||||
tar -xJf ffmpeg.tar.xz --wildcards */bin/ffmpeg --transform='s/^.*\///' && rm ffmpeg.tar.xz
|
||||
|
||||
# =========
|
||||
# Runtime
|
||||
# =========
|
||||
FROM rust:bookworm as runtime
|
||||
FROM debian:bullseye-slim as runtime
|
||||
# FROM debian:bookworm-slim as runtime
|
||||
# FROM rust:bookworm as runtime
|
||||
WORKDIR /service
|
||||
USER root
|
||||
|
||||
COPY --from=builder /builder/target/release/service /usr/local/bin/service
|
||||
COPY --from=packages /packages /usr/bin
|
||||
|
||||
RUN apt-get update && apt-get install -y libpq5
|
||||
# RUN apt-get update && apt-get install -y libpq5 && \
|
||||
# apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
CMD ["service"]
|
||||
|
||||
Reference in New Issue
Block a user