Skip to content

Commit 32a733a

Browse files
committed
build: switch to official rust docker image
1 parent 782fa0c commit 32a733a

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
FROM lukemathwalker/cargo-chef:0.1.77-rust-1.95.0-alpine3.23 AS chef
1+
FROM rust:1.95.0-alpine3.23 AS builder
2+
23
RUN apk --update add openssl-dev openssl-libs-static musl-dev pkgconfig
3-
WORKDIR /usr/src/semaphoreci-cctray
44

5-
FROM chef AS planner
6-
COPY src src
7-
COPY Cargo.lock Cargo.toml ./
8-
RUN cargo chef prepare --recipe-path recipe.json
5+
WORKDIR /usr/src/semaphoreci-cctray
96

10-
FROM chef AS builder
11-
COPY --from=planner /usr/src/semaphoreci-cctray/recipe.json recipe.json
12-
RUN cargo chef cook --release --recipe-path recipe.json
137
COPY src src
148
COPY Cargo.lock Cargo.toml ./
159
RUN cargo build --release

0 commit comments

Comments
 (0)