Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe5891b4f5
|
||
|
|
2a509299cd
|
No files matched your search
@@ -23,6 +23,7 @@ RUN set -o pipefail && \
|
|||||||
|
|
||||||
COPY ./bin /usr/local/bin
|
COPY ./bin /usr/local/bin
|
||||||
COPY ./config/claude.md /etc/claude-code/CLAUDE.md
|
COPY ./config/claude.md /etc/claude-code/CLAUDE.md
|
||||||
|
COPY ./config/bashrc /etc/profile.d/devc.sh
|
||||||
|
|
||||||
# === environment ===
|
# === environment ===
|
||||||
ENV EDITOR=nvim \
|
ENV EDITOR=nvim \
|
||||||
@@ -35,16 +36,17 @@ ENV EDITOR=nvim \
|
|||||||
# === setup user ===
|
# === setup user ===
|
||||||
RUN useradd -ms /bin/bash user && \
|
RUN useradd -ms /bin/bash user && \
|
||||||
echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \
|
echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \
|
||||||
mkdir -p /run/user/1000 && \
|
mkdir -p /run/user/1000 /opt/nvim && \
|
||||||
chown user:user /run/user/1000
|
chown user:user /run/user/1000 /opt/nvim
|
||||||
|
|
||||||
USER user
|
USER user
|
||||||
WORKDIR /home/user
|
WORKDIR /home/user
|
||||||
|
|
||||||
RUN mkdir -p .config .local .cache && \
|
RUN mkdir -p .config .local .cache && \
|
||||||
git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim
|
git clone https://git.plabble.org/Job79/neovim-config.git /opt/nvim && \
|
||||||
|
git -C /opt/nvim remote set-url origin ssh://git@git.plabble.org:2222/Job79/neovim-config.git && \
|
||||||
|
ln -s /opt/nvim .config/nvim
|
||||||
|
|
||||||
COPY --chown=user:user ./config/bashrc .bashrc
|
|
||||||
COPY --chown=user:user ./config/git .config/git/config
|
COPY --chown=user:user ./config/git .config/git/config
|
||||||
|
|
||||||
VOLUME /home/user
|
VOLUME /home/user
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
source /etc/bashrc
|
|
||||||
|
|
||||||
# === prompt ===
|
# === prompt ===
|
||||||
export PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] "
|
export PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] "
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user