From 43a0e35cb6bfe90d5213d2d36dd34f2ee62567de Mon Sep 17 00:00:00 2001 From: rafaeldamasceno Date: Wed, 22 Mar 2023 01:39:28 +0000 Subject: [PATCH] Update docker configuration --- Dockerfile | 11 ++++++----- docker-compose.yml | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 56b75290..1c016f86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,7 @@ # Necessary dependencies to build Parrot FROM rust:slim-bullseye as build -RUN apt-get update && apt-get install -y \ - build-essential autoconf automake cmake libtool libssl-dev pkg-config +RUN apt-get update && apt-get install -y libopus-dev libssl-dev pkg-config WORKDIR "/parrot" @@ -21,9 +20,11 @@ RUN cargo build --release --locked # Necessary dependencies to run Parrot FROM debian:bullseye-slim -RUN apt-get update && apt-get install -y python3-pip ffmpeg -RUN pip install -U yt-dlp +RUN apt-get update && apt-get install -y ffmpeg python3-pip +RUN pip install yt-dlp -COPY --from=build /parrot/target/release/parrot . +WORKDIR "/parrot" + +COPY --from=build /parrot/target/release/parrot /parrot CMD ["./parrot"] diff --git a/docker-compose.yml b/docker-compose.yml index 02d34b44..0fff1059 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,3 +7,5 @@ services: # image: ghcr.io/aquelemiguel/parrot env_file: .env restart: unless-stopped + volumes: + - ./data:/parrot/data