We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c9bf0d commit f90e2bbCopy full SHA for f90e2bb
Dockerfile
@@ -1,14 +1,21 @@
1
-FROM rustlang/rust:nightly-buster-slim AS build
+FROM rust:slim-bullseye AS build
2
3
RUN apt-get update
4
RUN apt-get install -y build-essential clang
5
6
+RUN rustup --version
7
+RUN rustup component add rustfmt
8
+
9
+RUN rustc --version && \
10
+ rustup --version && \
11
+ cargo --version
12
13
WORKDIR /app
14
COPY . /app
15
RUN cargo clean && cargo build --release --target x86_64-unknown-linux-gnu
16
RUN strip ./target/x86_64-unknown-linux-gnu/release/sonic
17
-FROM debian:buster-slim
18
+FROM debian:bullseye-slim
19
20
WORKDIR /usr/src/sonic
21
0 commit comments