diff --git a/.woodpecker.yml b/.woodpecker.yml index f1bae78..5b3aa3d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -15,7 +15,9 @@ steps: build-docker-image: image: docker commands: - - docker build --rm -t . + - docker buildx build . + volumes: + - /var/run/docker.sock:/var/run/docker.sock # publish-image: # when: diff --git a/Dockerfile b/Dockerfile index df2fe5a..672bfe4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,11 @@ -FROM rust-1.73.0-slim AS builder +FROM rust:1.71.0-slim AS builder RUN USER=root cargo new --bin memejoin-docker + +RUN apt update \ + && apt install -y ca-certificates git cmake gcc libopus-dev libssl-dev pkg-config \ + && rm -rf /var/lib/apt/lists/* + WORKDIR ./memejoin-docker COPY ./Cargo.toml ./Cargo.toml RUN cargo build --release @@ -15,7 +20,7 @@ FROM debian:buster-slim ARG APP=/usr/src/app RUN apt update \ - && apt install -y ca-certificates cmake gcc libopus libssl openssl pkg-config \ + && apt install -y ca-certificates yt-dlp ffmpeg libopus openssl3 pkg-config \ && rm -rf /var/lib/apt/lists/* EXPOSE 8100