Skip to content

Commit 98ae0a2

Browse files
committed
feat(docker): add official docker image joxit/kokai 🎉
1 parent 7ef9da8 commit 98ae0a2

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
/.*

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ readme = "README.md"
1212
keywords = ["cli", "release", "changelog", "git", "conventional-commits"]
1313
categories = ["command-line-utilities"]
1414

15+
[[bin]]
16+
name = "kokai"
17+
path = "src/main.rs"
18+
1519
[dependencies]
1620
structopt = "^0.3"
1721
regex = "^1.3"

Dockerfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM rust:1-slim-buster as rust-builder
2+
3+
WORKDIR /usr/local/src/kokai
4+
5+
RUN apt-get update \
6+
&& apt-get install -y --no-install-recommends git pkg-config make
7+
8+
COPY Cargo.toml .
9+
10+
RUN cargo fetch
11+
12+
COPY src src
13+
14+
RUN cargo build --release
15+
16+
FROM debian:buster-slim
17+
18+
WORKDIR /usr/local/src/
19+
20+
COPY --from=rust-builder /usr/local/src/kokai/target/release/kokai /bin/
21+
22+
ENTRYPOINT ["/bin/kokai"]

0 commit comments

Comments
 (0)