Add initial dockerfile

This commit is contained in:
LordMathis 2024-04-25 19:02:22 +02:00
commit cffb5fe5f7
1 changed files with 16 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
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"]