Paul Campbell
09ff4c3a54
All checks were successful
Rust / build (push) Successful in 11m6s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 1m8s
Add support for the experimental TUI when using the docker image.
31 lines
932 B
Docker
31 lines
932 B
Docker
# Leveraging the pre-built Docker images with
|
|
# cargo-chef and the Rust toolchain
|
|
FROM git.kemitix.net/kemitix/git-next-builder:2024.08.04 AS chef
|
|
WORKDIR /app
|
|
|
|
FROM chef AS planner
|
|
COPY Cargo.toml ./
|
|
COPY crates crates
|
|
RUN cargo chef prepare --recipe-path recipe.json
|
|
|
|
FROM chef AS builder
|
|
COPY --from=planner /app/recipe.json recipe.json
|
|
RUN cargo chef cook --profile release --recipe-path recipe.json
|
|
COPY . .
|
|
RUN cargo build --release --bin git-next --all-features && \
|
|
strip target/release/git-next
|
|
|
|
FROM docker.io/debian:stable-20240722-slim AS runtime
|
|
WORKDIR /app
|
|
RUN apt-get update && \
|
|
apt-get install --no-install-recommends -y \
|
|
git=1:2.39.2-1.1 \
|
|
libssl3=3.0.13-1~deb12u1 \
|
|
libdbus-1-dev=1.14.10-1~deb12u1 \
|
|
ca-certificates=20230311 \
|
|
&& \
|
|
rm -rf /var/lib/apt/lists/*
|
|
USER 1000
|
|
COPY --from=builder /app/target/release/git-next /usr/local/bin
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/git-next", "server", "start" ]
|