Merge branch 'patrick/moar-test-ci' of https://git.spacegirl.nl/patrick/memejoin-rs into patrick/moar-test-ci
ci/woodpecker/push/woodpecker Pipeline failed Details

Patrick Cleavelin 2023-07-29 13:37:01 -05:00
commit 3360d0d63b
2 changed files with 11 additions and 4 deletions

View File

@ -15,7 +15,9 @@ steps:
build-docker-image: build-docker-image:
image: docker image: docker
commands: commands:
- docker build --rm -t . - docker buildx build .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# publish-image: # publish-image:
# when: # when:

View File

@ -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 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 WORKDIR ./memejoin-docker
COPY ./Cargo.toml ./Cargo.toml COPY ./Cargo.toml ./Cargo.toml
RUN cargo build --release RUN cargo build --release
@ -11,11 +16,11 @@ ADD . ./
RUN rm ./target/release/deps/memejoin-docker RUN rm ./target/release/deps/memejoin-docker
RUN cargo build --release RUN cargo build --release
FROM debian:buster-slim FROM debian:bookworm
ARG APP=/usr/src/app ARG APP=/usr/src/app
RUN apt update \ RUN apt update \
&& apt install -y ca-certificates cmake gcc libopus libssl openssl pkg-config \ && apt install -y ca-certificates yt-dlp ffmpeg libopus0 openssl3 pkg-config \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
EXPOSE 8100 EXPOSE 8100