Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
geloman committed Nov 26, 2024
1 parent b76e7d9 commit 1305639
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions Dockerfile
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"]

0 comments on commit 1305639

Please sign in to comment.