-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
geloman
committed
Nov 26, 2024
1 parent
b76e7d9
commit 1305639
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
FROM alpine:latest AS base | ||
RUN apk add zsh unzip tar | ||
RUN addgroup --gid 1000 geloman | ||
RUN adduser -u 1000 -g geloman -G geloman -D geloman | ||
ENTRYPOINT ["zsh"] | ||
FROM ubuntu:latest AS base | ||
RUN apt update -y && apt upgrade -y | ||
RUN apt install -y git zsh eza bat unzip tar tmux neovim fzf git-delta fd-find ripgrep neofetch gcc | ||
RUN [ -n "$(command -v batcat)" ] && ln -s "$(command -v batcat)" /usr/bin/bat | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN useradd --create-home --shell /usr/bin/zsh geloman | ||
|
||
# FROM base AS setup | ||
# USER geloman | ||
# WORKDIR /home/geloman | ||
# COPY . . | ||
# RUN ./install.sh | ||
FROM base AS setup | ||
USER geloman | ||
WORKDIR /home/geloman | ||
COPY --chown=geloman:geloman nvim/ .config/nvim | ||
RUN nvim --headless "+Lazy! restore" +qa | ||
COPY --chown=geloman:geloman .gitconfig tmux/.tmux.conf zsh/.zshrc . | ||
COPY --chown=geloman:geloman . .dotfiles/ | ||
|
||
# FROM setup AS final | ||
# USER geloman | ||
# WORKDIR /home/geloman | ||
# ENTRYPOINT ["zsh"] | ||
FROM setup AS final | ||
USER geloman | ||
WORKDIR /home/geloman | ||
ENTRYPOINT ["zsh"] |