dev-container/Dockerfile

17 lines
351 B
Docker

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