Update arch machine
This commit is contained in:
+12
-9
@@ -9,7 +9,6 @@ RUN pacman -Syu --noconfirm && \
|
||||
vim \
|
||||
nvim \
|
||||
nano \
|
||||
htop \
|
||||
lazygit \
|
||||
ttyd \
|
||||
sudo \
|
||||
@@ -17,24 +16,28 @@ RUN pacman -Syu --noconfirm && \
|
||||
net-tools \
|
||||
iputils \
|
||||
bind-tools \
|
||||
unzip \
|
||||
yazi \
|
||||
go \
|
||||
zig \
|
||||
ripgrep \
|
||||
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
|
||||
|
||||
# Setup Git
|
||||
RUN git config --global user.email "git@bouvais.lu"
|
||||
RUN git config --global user.name "adrien"
|
||||
|
||||
# Add Gopls
|
||||
RUN go install golang.org/x/tools/gopls@latest
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
EXPOSE 7681
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user