File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Docker Image CI
22
33on :
44 push :
5- branches : ["master"]
5+ branches : [ "master" ]
66 schedule :
77 - cron : " 0 0 * * *"
88
2727 tags : ghcr.io/${{ github.repository }}
2828 cache-from : type=gha
2929 cache-to : type=gha,mode=max
30+ build-args : CACHEBUST=${{ github.run_id }}
3031
3132 - name : Login to DockerHub
3233 uses : docker/login-action@v1
Original file line number Diff line number Diff line change 11FROM docker.io/ubuntu
22
3- COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
4-
53RUN apt-get update && apt-get install -y --no-install-recommends \
64 bash python3 ripgrep \
75 git curl wget ca-certificates gnupg \
@@ -13,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1311 zip unzip tar gzip openssh-client \
1412 gh vim nano eza fzf shellcheck yamllint \
1513 docker.io sqlite3 postgresql-client \
16- htop tmux
14+ htop tmux clang default-jdk auto-apt-proxy
1715
1816RUN mkdir -p /etc/apt/keyrings \
1917 && curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.30/deb/Release.key \
@@ -23,9 +21,16 @@ RUN mkdir -p /etc/apt/keyrings \
2321 && apt-get update \
2422 && apt-get install -y --no-install-recommends kubectl
2523
24+ RUN curl -LsSf https://astral.sh/uv/install.sh | sh
25+
2626RUN curl -fsSL https://opencode.ai/install | bash
2727
28- ENV PATH="/root/.opencode/bin:${PATH}"
28+ ENV PATH="/root/.opencode/bin:/root/.local/bin:${PATH}"
29+
30+ ARG CACHEBUST
31+ RUN echo "CACHEBUST=$CACHEBUST" >/dev/null && \
32+ apt-get update && apt-get upgrade -y && \
33+ opencode upgrade && uv self update
2934
3035RUN ln -s /usr/bin/fdfind /usr/local/bin/fd
3136
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ Just Opencode in a container with some tools.
88podman run -it --rm \
99 -v " $( pwd) :/work$( pwd) :Z" \
1010 -w " /work$( pwd) " \
11- -v " $HOME /.opencode:/root/.opencode:Z" \
1211 -v " $HOME /.local/share/opencode:/root/.local/share/opencode:Z" \
1312 -v " $HOME /.local/state/opencode:/root/.local/state/opencode:Z" \
1413 -v " $HOME /.config/opencode:/root/.config/opencode:Z" \
@@ -24,9 +23,17 @@ You might need to create the dirs first:
2423
2524``` bash
2625mkdir -p \
27- $HOME /.opencode \
2826 $HOME /.local/share/opencode \
2927 $HOME /.local/state/opencode \
3028 $HOME /.config/opencode \
3129 $HOME /.cache/opencode
3230```
31+
32+ You might also want to add more bind to you podman command, e.g.:
33+
34+ ``` bash
35+ -v $HOME /.cache/uv:/root/.cache/uv \
36+ -v $HOME /.local/share/uv:/root/.local/share/uv \
37+ -v $HOME /.cache/pip:/root/.cache/pip \
38+ -v $HOME /.cache/huggingface:/root/.cache/huggingface \
39+ ```
You can’t perform that action at this time.
0 commit comments