-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 730 Bytes
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM rust:1.92.0-slim-trixie AS builder
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
ca-certificates \
make \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src
COPY zerofs/Cargo.toml zerofs/Cargo.lock ./zerofs/
COPY zerofs/src ./zerofs/src
WORKDIR /usr/src/zerofs
RUN cargo build --release
FROM debian:trixie-slim
RUN apt-get update && apt-get install -y \
ca-certificates \
libssl3t64 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/src/zerofs/target/release/zerofs /usr/local/bin/zerofs
RUN useradd -m -u 1001 zerofs
USER zerofs
# Default ports that might be used - actual configuration comes from TOML file
EXPOSE 2049 5564 10809
ENTRYPOINT ["zerofs"]