feat: add base image configuration
This commit is contained in:
parent
edcf1d46af
commit
b89d7fd354
2 changed files with 55 additions and 0 deletions
42
Dockerfile
Normal file
42
Dockerfile
Normal 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 .
|
||||||
13
distrobox.ini
Normal file
13
distrobox.ini
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
[devbox]
|
||||||
|
image=devbox:latest
|
||||||
|
|
||||||
|
replace=true
|
||||||
|
pull=false
|
||||||
|
init=true
|
||||||
|
unshare_all=true
|
||||||
|
root=false
|
||||||
|
start_now=true
|
||||||
|
|
||||||
|
additional_packages="git neovim"
|
||||||
|
|
||||||
|
home="${HOME}/chroots/devbox"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue