dev-container/Dockerfile

19 lines
383 B
Docker

FROM tsl0922/ttyd:latest
RUN apt-get update && apt-get install --no-install-recommends -y \
git \
neovim \
zsh \
sudo \
curl \
openssh-client
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"]