Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 4c6fc07

Browse files
committed
Add Dockerfile
1 parent 2eb3781 commit 4c6fc07

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM rust:1.93 AS builder
2+
WORKDIR /usr/src/brioche-cache-server
3+
COPY Cargo.lock Cargo.toml .
4+
COPY src src
5+
RUN cargo install --locked --path .
6+
7+
FROM debian:bullseye-slim
8+
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
9+
COPY --from=builder /usr/local/cargo/bin/brioche-cache-server /usr/local/bin/brioche-cache-server
10+
EXPOSE 3000/tcp
11+
EXPOSE 3001/tcp
12+
CMD ["brioche-cache-server"]

0 commit comments

Comments
 (0)