Skip to content

Commit f90e2bb

Browse files
Fix Docker builds
1 parent 6c9bf0d commit f90e2bb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Dockerfile

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
FROM rustlang/rust:nightly-buster-slim AS build
1+
FROM rust:slim-bullseye AS build
22

33
RUN apt-get update
44
RUN apt-get install -y build-essential clang
55

6+
RUN rustup --version
7+
RUN rustup component add rustfmt
8+
9+
RUN rustc --version && \
10+
rustup --version && \
11+
cargo --version
12+
613
WORKDIR /app
714
COPY . /app
815
RUN cargo clean && cargo build --release --target x86_64-unknown-linux-gnu
916
RUN strip ./target/x86_64-unknown-linux-gnu/release/sonic
1017

11-
FROM debian:buster-slim
18+
FROM debian:bullseye-slim
1219

1320
WORKDIR /usr/src/sonic
1421

0 commit comments

Comments
 (0)