We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eed87c8 commit d5dda03Copy full SHA for d5dda03
Dockerfile
@@ -1,8 +1,6 @@
1
FROM rust:1.91-slim AS build
2
WORKDIR /build
3
4
-RUN useradd -u 65532 nonroot
5
-
6
RUN rustup target add x86_64-unknown-linux-musl && \
7
apt-get update && \
8
apt-get install -y musl-tools musl-dev && \
@@ -28,11 +26,12 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry <<EOF
28
26
cargo build --release --locked --target x86_64-unknown-linux-musl
29
27
EOF
30
31
-FROM scratch
+FROM alpine:3.23
32
33
-COPY --from=build /etc/passwd /etc/passwd
34
COPY --from=build /build/target/x86_64-unknown-linux-musl/release/glazed glazed
35
+RUN adduser -u 65532 -D -H nonroot
+
36
USER nonroot
37
38
ENTRYPOINT ["/glazed"]
0 commit comments