Skip to content

Commit b2959ba

Browse files
committed
feat(Dockerfile): Add dockerized build and app
Add option to have docker support, to publish kernelci-storage as docker image. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent eb80332 commit b2959ba

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.83 AS builder
2+
WORKDIR /usr/src/app
3+
COPY . .
4+
RUN cargo install --path .
5+
6+
FROM debian:bookworm-slim
7+
#RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
8+
RUN apt-get update && rm -rf /var/lib/apt/lists/*
9+
COPY --from=builder /usr/local/cargo/bin/kernelci-storage /usr/local/bin/kernelci-storage
10+
CMD ["kernelci-storage"]
11+
12+

0 commit comments

Comments
 (0)