1
0
Selfhosted-config/Dockerfile.arch-ttyd

41 lines
912 B
Docker

FROM archlinux:latest
# Update system and install essential packages
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm \
base-devel \
git \
wget \
vim \
nvim \
nano \
htop \
lazygit \
ttyd \
sudo \
which \
net-tools \
iputils \
bind-tools \
openssh && \
pacman -Scc --noconfirm
# Create a workspace directory
RUN mkdir -p /data
# Create entrypoint script
RUN echo '#!/bin/bash' > /entrypoint.sh && \
echo 'chmod 600 /root/.ssh/id_rsa' >> /entrypoint.sh && \
echo 'exec ttyd -c $TTYD_USERNAME:$TTYD_PASSWORD -W -p 7681 bash' >> /entrypoint.sh && \
chmod +x /entrypoint.sh
# Install Astronvim
RUN git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim && \
rm -rf ~/.config/nvim/.git
WORKDIR /data
EXPOSE 7681
ENTRYPOINT ["/entrypoint.sh"]