fix - changed the terminal conf to docker
This commit is contained in:
parent
f09bf576c4
commit
29228057f6
11 changed files with 111 additions and 66 deletions
51
Dockerfile
Normal file
51
Dockerfile
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
FROM debian:trixie
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
neovim \
|
||||
man-db \
|
||||
openssh-client \
|
||||
passwd \
|
||||
gcc \
|
||||
ripgrep \
|
||||
wl-clipboard \
|
||||
tmux \
|
||||
curl \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
nodejs
|
||||
|
||||
ARG UID
|
||||
ARG GID
|
||||
ARG USERNAME
|
||||
ARG CONFIG_PREFIX
|
||||
|
||||
ENV USERNAME=${USERNAME:-bumpsoo}
|
||||
ENV UID=${UID:-1000}
|
||||
ENV GID=${GID:-$UID}
|
||||
ENV CONFIG_PREFIX=${CONFIG_PREFIX:-personal}
|
||||
ENV TERM=xterm-256color
|
||||
|
||||
RUN set -eux; \
|
||||
groupadd -g "$GID" "$USERNAME"; \
|
||||
useradd -m -u "$UID" -g "$USERNAME" -s /bin/bash "$USERNAME"; \
|
||||
mkdir -p /workspace; \
|
||||
chown "$USERNAME:$USERNAME" /workspace
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
ENV HOME=/home/${USERNAME}
|
||||
|
||||
USER ${USERNAME}
|
||||
|
||||
RUN python3 -m venv $HOME/py && $HOME/py/bin/pip install pyright
|
||||
RUN echo "export PATH=\"$HOME/py/bin:$PATH\"" >> $HOME/.bashrc
|
||||
|
||||
COPY --chown=${USERNAME}:${GID} ${CONFIG_PREFIX}.gitconfig /home/${USERNAME}/.gitconfig
|
||||
|
||||
COPY --chown=${USERNAME}:${GID} .config/nvim /home/${USERNAME}/.config/nvim
|
||||
|
||||
COPY --chown=${USERNAME}:${GID} .tmux.conf /home/${USERNAME}/.tmux.conf
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue