add startup script

This commit is contained in:
xfy
2024-10-22 17:13:36 +08:00
parent b5f95e650b
commit fd3147d6ce
2 changed files with 12 additions and 1 deletions

View File

@ -14,6 +14,8 @@ RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/
ARG USER=xfy
COPY ./init.sh /etc/xfy/
RUN useradd --groups sudo --no-create-home --shell /bin/zsh ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
@ -55,4 +57,4 @@ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygi
RUN pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
# python3 -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip \
ENTRYPOINT ["/bin/zsh"]
ENTRYPOINT ["/etc/xfy/init.sh"]

View File

@ -0,0 +1,9 @@
INSTALL_DIR="/etc/nvim/"
export XDG_CONFIG_HOME="${INSTALL_DIR}.config"
export XDG_DATA_HOME="${INSTALL_DIR}.local/share"
export XDG_STATE_HOME="${INSTALL_DIR}.local/state"
export TERM="xterm-256color"
export DISPLAY=":0"
/bin/zsh