-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 877 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (18 loc) · 877 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
FROM rust:1.86.0-slim-bookworm@sha256:57d415bbd61ce11e2d5f73de068103c7bd9f3188dc132c97cef4a8f62989e944 AS builder
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY crates/ crates/
COPY src/ src/
RUN cargo build --release --locked
FROM debian:bookworm-slim@sha256:7b140f374b289a7c2befc338f42ebe6441b7ea838a042bbd5acbfca6ec875818
LABEL org.opencontainers.image.title="crawlreplay" \
org.opencontainers.image.version="0.1.0" \
org.opencontainers.image.licenses="Apache-2.0"
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/crawlreplay /usr/local/bin/crawlreplay
COPY LICENSE /usr/share/licenses/crawlreplay/LICENSE
RUN useradd --system --no-create-home --shell /usr/sbin/nologin crawlreplay
USER crawlreplay:crawlreplay
ENTRYPOINT ["crawlreplay"]