-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (56 loc) · 1.93 KB
/
Dockerfile
File metadata and controls
68 lines (56 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Default Dockerfile - Ubuntu test environment
# For multi-platform testing, see docker/ directory
#
# Usage:
# docker build -t dotfiles-test .
# docker run -it dotfiles-test
#
# Or use docker-compose for multi-platform:
# cd docker && make test
FROM ubuntu:24.04
LABEL maintainer="Stan S <https://dotfiles.download>"
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
ENV TZ=Europe/Paris
ENV TERM=xterm-256color
# Install base packages
RUN apt-get update && apt-get -y install \
software-properties-common \
curl \
wget \
git \
zsh \
locales \
sudo \
zoxide \
fzf \
ripgrep \
fd-find \
bat \
&& rm -rf /var/lib/apt/lists/*
# Create symlinks for renamed packages
RUN ln -sf /usr/bin/batcat /usr/local/bin/bat 2>/dev/null || true && \
ln -sf /usr/bin/fdfind /usr/local/bin/fd 2>/dev/null || true
# Generate locale
RUN locale-gen en_US.UTF-8
# Install gum (for serotonin TUI)
RUN mkdir -p /etc/apt/keyrings && \
curl -fsSL https://repo.charm.sh/apt/gpg.key | gpg --dearmor -o /etc/apt/keyrings/charm.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | tee /etc/apt/sources.list.d/charm.list && \
apt-get update && apt-get install -y gum && \
rm -rf /var/lib/apt/lists/*
# Install chezmoi
RUN sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /usr/local/bin
# Install sheldon (from GitHub releases)
RUN SHELDON_VERSION=$(curl -sL https://api.github.com/repos/rossmacarthur/sheldon/releases/latest | grep '"tag_name"' | cut -d'"' -f4) && \
curl -sL "https://github.com/rossmacarthur/sheldon/releases/download/${SHELDON_VERSION}/sheldon-${SHELDON_VERSION}-x86_64-unknown-linux-musl.tar.gz" | \
tar xz -C /usr/local/bin sheldon
# Install starship
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y
WORKDIR /dotfiles
COPY . .
# Set zsh as default shell
SHELL ["/bin/zsh", "-c"]
CMD ["/bin/zsh"]