feat: change devbox to void linux
Some checks failed
Publish image / Generate job matrices (push) Successful in 8s
Publish image / create-docker-images (map[name:devbox path:boxes/devbox]) (push) Failing after 30s

This commit is contained in:
Alexander Navarro 2024-11-08 15:00:03 -03:00
parent e05f690b61
commit 15569f56a9
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5

View file

@ -1,25 +1,9 @@
FROM rust:alpine AS rust-builder
# setup cargo packages, prefer to use apk packages
# to reduce build time and space
RUN \
--mount=type=cache,target=/var/cache/apk/ \
--mount=type=cache,target=/app/target/ \
--mount=type=cache,target=/usr/local/cargo/git/db \
--mount=type=cache,target=/usr/local/cargo/registry/ \
apk add bash curl build-base openssl-dev \
&& curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash \
&& cargo binstall --no-confirm \
cocogitto \
yazi-fm yazi-cli \
tealdeer
FROM quay.io/toolbx-images/alpine-toolbox:edge
FROM ghcr.io/void-linux/void-glibc-full:latest
# Setup alpine packages
RUN --mount=type=cache,target=/var/cache/apk/ \
apk update && apk upgrade && apk add \
build-base \
RUN --mount=type=cache,target=/var/cache/xbps/ \
xbps-install -Syu \
cocogitto \
curl \
fd \
fzf \
@ -27,18 +11,19 @@ RUN --mount=type=cache,target=/var/cache/apk/ \
lazygit \
neovim \
nushell \
openssh \
ripgrep \
sd \
starship \
tealdeer \
tmux \
tree-sitter-cli \
tree-sitter \
void-repo-multilib \
void-repo-multilib-nonfree \
void-repo-nonfree \
yazi \
zoxide \
zsh
# Import cargo packages
COPY --from=rust-builder /usr/local/cargo/bin/* /usr/local/bin/
# Set environment variables
ENV EDITOR=nvim \
VISUAL=nvim \