quality of life changes

This commit is contained in:
Lorenz Hohermuth 2024-06-09 23:11:51 +02:00
parent 8df7e155b2
commit 76eee05637
1 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,3 @@
# syntax=docker/dockerfile:1
FROM ubuntu:20.04 as builder FROM ubuntu:20.04 as builder
WORKDIR /root WORKDIR /root
@ -18,6 +17,9 @@ RUN apt-get update && apt-get install -y autoconf automake build-essential cmake
FROM ubuntu:20.04 as final FROM ubuntu:20.04 as final
ARG GITEA_REPO="standart"
ARG GITEA_USER="lorenzhohermuth"
ENV PATH="${PATH}:/opt/nvim-linux64/bin" ENV PATH="${PATH}:/opt/nvim-linux64/bin"
WORKDIR /root WORKDIR /root
@ -37,11 +39,17 @@ RUN apt-get update && apt-get install -y zsh && \
#nvim config #nvim config
RUN mkdir .config && cd .config && \ RUN mkdir .config && cd .config && \
git clone https://git.lorenzzz.dev/lorenzhohermuth/nvim.git && pwd git clone https://git.lorenzzz.dev/lorenzhohermuth/nvim.git && \
nvim --headless "+Lazy! sync" +qa && \
nvim --headless "+:SupermavenUseFree" +qa
#clone repo
#RUN git clone $REPO_URL && echo "cd ${$(basename "$_" .git)}" >> .zshrc
RUN git clone https://git.lorenzzz.dev/${GITEA_USER}/${GITEA_REPO}.git && echo "cd ${GITEA_REPO}" >> .zshrc
COPY --from=builder /root/ttyd/dist/ttyd /usr/bin/ttyd COPY --from=builder /root/ttyd/dist/ttyd /usr/bin/ttyd
EXPOSE 7681 EXPOSE 7681
ENTRYPOINT ["/usr/bin/tini", "--"] ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ttyd -W bash CMD ["ttyd", "-W", "zsh"]