Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.devcontainer/
.git/
.github/
.venv/
.vscode/
lua/
scripts/
target/

*.md
.editorconfig
.git-blame-ignore-revs
.gitignore
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,11 @@ jobs:

- name: Test
run: cargo test

docker:
name: Check Docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build Docker Image
run: docker build -t fancy-tree .
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM rust:1-alpine AS builder
WORKDIR /app
COPY . .
RUN apk --update add cmake make musl-dev pkgconfig && \
cargo build --release

FROM alpine:3 AS runtime
COPY --from=builder /app/target/release/fancy-tree /usr/local/bin/fancy-tree

ENTRYPOINT ["/usr/local/bin/fancy-tree"]