Cleanup, working on getting play to work

This commit is contained in:
Benjamin Sherriff
2023-10-07 22:55:31 -04:00
parent 3ca91c7765
commit 690a327084
9 changed files with 109 additions and 119 deletions

View File

@@ -17,10 +17,10 @@ RUN cargo build --release
FROM debian:bookworm-slim as packages
WORKDIR /packages
RUN apt-get update && apt-get install -y curl tar xz-utils
ARG TARGETPLATFORM
# Check if the target platform is linux/x86_64, otherwise log error and exit
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
RUN apt-get update && apt-get install -y curl tar xz-utils && \
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
echo "amd64" && false; \
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_armv7l > yt-dlp && \
@@ -53,9 +53,6 @@ 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 \
libc6 libc6-dev libopus-dev libpq5 libpq-dev python3-pip ffmpeg
# apt-get auto-remove -y && \
# RUN pipx install yt-dlp
RUN apt-get update && apt-get install -y libc6 libc6-dev libopus-dev libpq5 libpq-dev python3-pip ffmpeg
CMD ["service"]