Skip to content

Commit

Permalink
Update docker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldamasceno committed Apr 22, 2024
1 parent 17c85b2 commit 43a0e35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"]
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ services:
# image: ghcr.io/aquelemiguel/parrot
env_file: .env
restart: unless-stopped
volumes:
- ./data:/parrot/data

0 comments on commit 43a0e35

Please sign in to comment.