Compare commits
2 commits
b0be0f636c
...
6bbc89490a
Author | SHA1 | Date | |
---|---|---|---|
6bbc89490a | |||
cbf6c3b73c |
2 changed files with 4 additions and 4 deletions
|
@ -1,14 +1,14 @@
|
||||||
# Leveraging the pre-built Docker images with
|
# Leveraging the pre-built Docker images with
|
||||||
# cargo-chef and the Rust toolchain
|
# cargo-chef and the Rust toolchain
|
||||||
FROM git.kemitix.net/kemitix/git-next-builder:latest AS chef
|
FROM git.kemitix.net/kemitix/git-next-builder:2024.07.05 AS chef
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
FROM chef as planner
|
FROM chef AS planner
|
||||||
COPY Cargo.toml ./
|
COPY Cargo.toml ./
|
||||||
COPY crates crates
|
COPY crates crates
|
||||||
RUN cargo chef prepare --recipe-path recipe.json
|
RUN cargo chef prepare --recipe-path recipe.json
|
||||||
|
|
||||||
FROM chef as builder
|
FROM chef AS builder
|
||||||
COPY --from=planner /app/recipe.json recipe.json
|
COPY --from=planner /app/recipe.json recipe.json
|
||||||
RUN cargo chef cook --profile release --recipe-path recipe.json
|
RUN cargo chef cook --profile release --recipe-path recipe.json
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM docker.io/rust:latest
|
FROM docker.io/rust:1.79.0-bookworm
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y clang-16 mold && \
|
apt-get install -y clang-16 mold && \
|
||||||
|
|
Loading…
Reference in a new issue