feat: add base image configuration

This commit is contained in:
Alexander Navarro 2024-11-04 15:29:51 -03:00
parent edcf1d46af
commit b89d7fd354
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
2 changed files with 55 additions and 0 deletions

42
Dockerfile Normal file
View file

@ -0,0 +1,42 @@
FROM quay.io/toolbx-images/alpine-toolbox:edge
# Update system and install packages
RUN apk update && apk upgrade && \
apk add --no-cache \
neovim \
git \
lazygit \
zsh \
curl \
wget \
ripgrep \
fd \
fzf \
alpine-sdk \
build-base \
python3 \
py3-pip \
openssh
# Set environment variables
ENV EDITOR=nvim \
VISUAL=nvim \
TERM=xterm-256color \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
SHELL=/bin/zsh
# Install and initialize chezmoi
RUN sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /usr/local/bin && \
mkdir -p ~/.local/share/chezmoi
RUN chsh -s /bin/zsh
# Create workspace directory
RUN mkdir -p /workspace
WORKDIR /workspace
# Build commands:
# Docker: docker build -t dev-env .
# Podman: podman build -t dev-env .