Skip to content

Commit 98d2c19

Browse files
committed
Add docker config
1 parent f072a94 commit 98d2c19

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.devcontainer/
2+
.git/
3+
.github/
4+
.venv/
5+
.vscode/
6+
lua/
7+
scripts/
8+
target/
9+
10+
*.md
11+
.editorconfig
12+
.git-blame-ignore-revs
13+
.gitignore

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM rust:1-alpine AS builder
2+
WORKDIR /app
3+
COPY . .
4+
RUN apk --update add cmake make musl-dev pkconfig && \
5+
cargo build --release
6+
7+
FROM alpine:3 AS runtime
8+
COPY --from=builder /app/target/release/fancy-tree /usr/local/bin/fancy-tree
9+
10+
ENTRYPOINT ["/usr/local/bin/fancy-tree"]

0 commit comments

Comments
 (0)