Skip to content
Merged
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
23 changes: 13 additions & 10 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:edge AS builder
FROM alpine:3.21 AS builder

ARG TARGETPLATFORM

Expand All @@ -8,11 +8,13 @@ ARG TARGETPLATFORM
WORKDIR /home/root
ENV HOME=/home/root

# Get the full version (e.g., 3.15.0) and major version (e.g., 3.15)
# 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/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
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

# Update package list
RUN apk update && apk upgrade
Expand All @@ -22,6 +24,7 @@ RUN apk add --no-cache \
git \
lazygit \
make \
shfmt \
# Uncategorized dependencies \
iputils \
bind-tools \
Expand Down Expand Up @@ -50,7 +53,7 @@ RUN apk add --no-cache \
direnv \
yq \
fd \
thefuck \
thefuck@edge \
delta \
# Languages \
go \
Expand All @@ -63,7 +66,7 @@ RUN apk add --no-cache \
npm \
# Miscellaneous tools \
jq \
neofetch \
neofetch@edge \
tmux \
vim \
# Shells and Zsh plugins \
Expand All @@ -73,9 +76,9 @@ RUN apk add --no-cache \
zsh-completions \
# K8s tools \
kubectl \
helm \
helm-ls \
helmfile \
helm@edge \
helm-ls@edge \
helmfile@edge \
k9s \
&& rm -rf /var/cache/apk/*

Expand Down
Loading