dev-container/Dockerfile

19 lines
383 B
Docker
Raw 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 \
openssh-client
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
USER dev
WORKDIR /home/dev
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["ttyd", "-W", "bash"]