mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 08:41:36 +00:00
add startup script
This commit is contained in:
@ -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"]
|
||||
|
9
dockerfiles/ubuntu/init.sh
Normal file
9
dockerfiles/ubuntu/init.sh
Normal 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
|
Reference in New Issue
Block a user