Skip to content

Commit d7d5de4

Browse files
committed
add warnet-bundle Dockerfile
1 parent 917ee4a commit d7d5de4

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.git
2+
.github
23

34
**/__pycache__
45
.trunk
56
.venv
7+
.envrc
68
build
79
dist
810
**/*.egg-info
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM python:3.11-alpine
2+
3+
# Install uv and ktop by copying from their docker images
4+
COPY --from=ghcr.io/astral-sh/uv:0.4.12 /uv /bin/uv
5+
COPY --from=ghcr.io/vladimirvivien/ktop:latest /ko-app/ktop /bin/ktop
6+
7+
RUN apk add --no-cache bash curl ca-certificates git kubectl helm k9s fish vim
8+
9+
# Setup venv and install warnet
10+
ADD . /warnet
11+
WORKDIR /warnet
12+
RUN uv sync
13+
14+
# Setup autocomplete
15+
RUN mkdir -p /root/.config/fish/completions
16+
RUN cat <<EOF > /root/.config/fish/completions/warnet.fish
17+
_WARNET_COMPLETE=fish_source warnet | source
18+
EOF
19+
20+
# Start
21+
CMD ["/usr/bin/fish", "-c", "source /warnet/.venv/bin/activate.fish; cd /root; exec fish"]

0 commit comments

Comments
 (0)