Skip to content

Instantly share code, notes, and snippets.

View skyscribe's full-sized avatar
🏠
Available

Fei skyscribe

🏠
Available
View GitHub Profile
@skyscribe
skyscribe / Dockerfile
Last active March 16, 2023 16:39
Build slim rust with alpine and cargo chef
FROM docker-registry-remote.artifactory-espoo1.int.net.nokia.com/rust:1.66-alpine as chef
RUN apk add --no-cache musl-dev
RUN cargo --version
RUN cargo install cargo-chef
WORKDIR /app
FROM chef as planner
COPY Cargo.toml Cargo.lock ./
RUN cargo chef prepare --recipe-path recipe.json