dev-container/Dockerfile

25 lines
543 B
Docker
Raw Permalink Normal View History

2024-04-25 17:02:22 +00:00
FROM tsl0922/ttyd:latest
RUN apt-get update && apt-get install --no-install-recommends -y \
git \
neovim \
zsh \
2024-04-25 17:45:01 +00:00
sudo \
curl \
2024-04-25 19:44:05 +00:00
openssh-client \
ca-certificates \
bat \
build-essential
2024-04-25 17:02:22 +00:00
RUN useradd -m -d /home/dev -s /usr/bin/zsh dev && adduser dev sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2024-04-25 19:44:05 +00:00
USER dev
2024-04-25 17:02:22 +00:00
WORKDIR /home/dev
2024-04-25 19:44:05 +00:00
RUN curl https://git.namesny.com/Mathis/dotfiles/raw/branch/main/install.sh | zsh -s -- desktop/common
2024-04-25 17:02:22 +00:00
ENTRYPOINT ["/usr/bin/tini", "--"]
2024-04-25 19:44:05 +00:00
CMD ["ttyd", "-W", "zsh"]