File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ * .local
2
+ .github
3
+ .vscode
4
+ .git
5
+ docs
6
+ target
Original file line number Diff line number Diff line change 1
- FROM rust:slim as builder
1
+ FROM rust:1.75- slim-bookworm as builder
2
2
3
- RUN apt-get update && apt-get -y install protobuf-compiler gcc-multilib musl-tools
3
+ RUN apt-get update && apt-get -y install protobuf-compiler
4
4
WORKDIR /app
5
5
COPY . .
6
- RUN rustup target add x86_64-unknown-linux-musl
7
- RUN cargo build --release --target x86_64-unknown-linux-musl
6
+ RUN cargo build --release
8
7
9
- FROM debian:bullseye -slim as runner
8
+ FROM debian:bookworm -slim as runner
10
9
RUN apt-get update
11
10
RUN apt-get install -y --fix-missing pcscd yubikey-manager python3 python3-pip gnupg libc6 sysvinit-utils pcsc-tools libccid libnss3-tools openssl
12
11
RUN apt-get clean
13
- RUN pip install yubikey-manager
14
12
15
13
FROM runner
16
14
RUN service pcscd start
17
15
WORKDIR /app
18
- COPY --from=builder /app/target/x86_64-unknown-linux-musl/ release/yubikey-provision /usr/local/bin
16
+ COPY --from=builder /app/target/release/yubikey-provision /usr/local/bin
19
17
ENTRYPOINT ["/usr/local/bin/yubikey-provision" ]
Original file line number Diff line number Diff line change
1
+ [toolchain ]
2
+ channel = " 1.75"
You can’t perform that action at this time.
0 commit comments