Skip to content
Closed
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
20 changes: 9 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build environment to install emerge and perform updates
FROM alpine:3.21 AS builder
FROM alpine:edge AS builder

ARG TARGETPLATFORM

Expand All @@ -10,11 +10,9 @@ ENV HOME=/home/root

# Stable repos first, edge as fallback for packages not yet in stable
RUN ALPINE_VERSION=$(cut -d '.' -f1,2 /etc/alpine-release) && \
echo "http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/main" > /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community" >> /etc/apk/repositories && \
echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories

# Update package list
RUN apk update && apk upgrade
Expand Down Expand Up @@ -55,7 +53,6 @@ RUN apk add --no-cache \
direnv \
yq \
fd \
thefuck@edge \
delta \
# Languages \
go \
Expand All @@ -68,7 +65,7 @@ RUN apk add --no-cache \
npm \
# Miscellaneous tools \
jq \
neofetch@edge \
neofetch \
tmux \
vim \
# Shells and Zsh plugins \
Expand All @@ -78,9 +75,9 @@ RUN apk add --no-cache \
zsh-completions \
# K8s tools \
kubectl \
helm@edge \
helm-ls@edge \
helmfile@edge \
helm \
helm-ls \
helmfile \
k9s \
&& rm -rf /var/cache/apk/*

Expand Down Expand Up @@ -126,6 +123,7 @@ RUN apk --no-cache --virtual .build-deps add \
uv tool install --verbose pyright && \
uv tool install --verbose ruff-lsp && \
uv tool install --verbose just && \
uv tool install --verbose thefuck && \
uv tool install --verbose ansible

# npm installs
Expand Down
Loading