summaryrefslogtreecommitdiff
path: root/docker_build/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker_build/Dockerfile')
-rw-r--r--docker_build/Dockerfile61
1 files changed, 0 insertions, 61 deletions
diff --git a/docker_build/Dockerfile b/docker_build/Dockerfile
deleted file mode 100644
index 16f74d6..0000000
--- a/docker_build/Dockerfile
+++ /dev/null
@@ -1,61 +0,0 @@
-FROM rockylinux:9
-
-# Install required packages, resolving curl conflict
-RUN dnf install -y epel-release
-RUN dnf install -y --allowerasing openssh-server sudo procps-ng \
- gcc gcc-c++ make cmake pkg-config openssl-devel libicu-devel perl python3-devel \
- nc openssl bat autossh tmux htop tar bmon gzip tree wget \
- nano vim unzip net-tools git python3 python3-pip make wireguard-tools usbutils yum xclip \
- && dnf clean all
-
-# Configure SSH
-RUN mkdir -p /var/run/sshd && \
- ssh-keygen -A && \
- sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config && \
- sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
- sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config && \
- echo "AllowAgentForwarding yes" >> /etc/ssh/sshd_config
-# Setup SSH directory for root and ensure root has valid shell
-RUN mkdir -p /root/.ssh && \
- chmod 700 /root/.ssh && \
- usermod -s /bin/bash root
-# Copy SSH public keys from docker_build/ssh-keys directory into the image
-COPY docker_build/ssh-keys/*.pub /tmp/ssh-keys/
-RUN cat /tmp/ssh-keys/*.pub > /root/.ssh/authorized_keys && \
- chmod 600 /root/.ssh/authorized_keys && \
- rm -rf /tmp/ssh-keys
-
-# Configure vim
-COPY docker_build/vimrc /etc/vimrc
-
-# Configure bash prompt and colors
-RUN echo 'LS_COLORS=$LS_COLORS:"di=38;5;135:ex=00;32:" ; export LS_COLORS' >> /etc/bashrc && \
- echo 'PS1="[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ "' >> /etc/bashrc && \
- echo 'export PATH=$PATH:/root/.cargo/bin' >> /root/.bashrc
-
-# Install Rust and tools for root
-RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
- echo '[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"' >> ~/.bashrc && \
- source "$HOME/.cargo/env" && \
- cargo install cargo-clone-crate cargo-edit cargo-info evcxr_jupyter bacon du-dust
-
-# Install Node.js via nvm and claude-code
-RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \
- export NVM_DIR="$HOME/.nvm" && \
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
- nvm install 22 && \
- npm install -g @anthropic-ai/claude-code
-
-# Add nvm to bashrc for future sessions
-RUN echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc && \
- echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.bashrc && \
- echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> ~/.bashrc
-
-# Set working directory
-WORKDIR /root
-
-# Expose SSH port
-EXPOSE 22
-
-# Start SSH daemon
-CMD ["/usr/sbin/sshd", "-D", "-e"]