raw9 commited on
Commit
ea79449
·
verified ·
1 Parent(s): 1ea66af

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -12
Dockerfile CHANGED
@@ -5,7 +5,7 @@ FROM ubuntu:22.04
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
7
 
8
- # Install ONLY Core Professional Tools (Zero bloatware, optimized size)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  curl wget git htop nano vim python3 python3-pip sudo zsh tmux unzip locales \
11
  && apt-get clean && rm -rf /var/lib/apt/lists/*
@@ -23,18 +23,20 @@ ENV HOME=/home/user
23
  ENV PATH="/home/user/.local/bin:${PATH}"
24
  WORKDIR $HOME/app
25
 
26
- # Oh My Zsh and Plugins (Optimized with --depth=1 for faster loading)
27
- RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended \
28
- && git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions \
29
- && git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
 
 
 
 
30
 
31
- # Clean Zsh Configuration
32
- RUN sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="ys"/g' ~/.zshrc \
33
- && sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g' ~/.zshrc
34
-
35
- # Professional Deep Black Tmux Config (Mouse Support + Dark Borders)
36
  RUN echo 'set -g default-terminal "screen-256color"' > ~/.tmux.conf \
37
- && echo 'set -g mouse on' >> ~/.tmux.conf \
 
 
38
  && echo 'set -g status-bg "#000000"' >> ~/.tmux.conf \
39
  && echo 'set -g status-fg "#ffffff"' >> ~/.tmux.conf \
40
  && echo 'set -g status-left-length 50' >> ~/.tmux.conf \
@@ -46,7 +48,7 @@ RUN echo 'set -g default-terminal "screen-256color"' > ~/.tmux.conf \
46
  # Copy project files
47
  COPY --chown=user:user . $HOME/app
48
 
49
- # BUG FIX: Safely install Python Requirements with Strict Error Checking
50
  RUN if grep -q '^[^#[:space:]]' requirements.txt; then \
51
  pip3 install --no-cache-dir --upgrade pip && \
52
  pip3 install --no-cache-dir -r requirements.txt; \
 
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
7
 
8
+ # Install ONLY Core Professional Tools (No heavy frameworks)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  curl wget git htop nano vim python3 python3-pip sudo zsh tmux unzip locales \
11
  && apt-get clean && rm -rf /var/lib/apt/lists/*
 
23
  ENV PATH="/home/user/.local/bin:${PATH}"
24
  WORKDIR $HOME/app
25
 
26
+ # ULTRA-FAST ZSH SETUP (No Oh-My-Zsh, zero lag, instant response)
27
+ # We create a custom beautiful prompt that loads in 0.001 seconds
28
+ RUN echo "autoload -U colors && colors" > ~/.zshrc \
29
+ && echo "PROMPT=$'\n%{$fg[cyan]%}%~%{$reset_color%}\n%{$fg[green]%}❯%{$reset_color%} '" >> ~/.zshrc \
30
+ && echo "alias ll='ls -alF'" >> ~/.zshrc \
31
+ && echo "alias la='ls -A'" >> ~/.zshrc \
32
+ && echo "alias l='ls -CF'" >> ~/.zshrc \
33
+ && echo "clear" >> ~/.zshrc
34
 
35
+ # ZERO-LATENCY TMUX CONFIG (Mouse OFF for native text selection)
 
 
 
 
36
  RUN echo 'set -g default-terminal "screen-256color"' > ~/.tmux.conf \
37
+ && echo 'set -g mouse off' >> ~/.tmux.conf \
38
+ && echo 'set -s escape-time 0' >> ~/.tmux.conf \
39
+ && echo 'set -g history-limit 100000' >> ~/.tmux.conf \
40
  && echo 'set -g status-bg "#000000"' >> ~/.tmux.conf \
41
  && echo 'set -g status-fg "#ffffff"' >> ~/.tmux.conf \
42
  && echo 'set -g status-left-length 50' >> ~/.tmux.conf \
 
48
  # Copy project files
49
  COPY --chown=user:user . $HOME/app
50
 
51
+ # Safely install Python Requirements
52
  RUN if grep -q '^[^#[:space:]]' requirements.txt; then \
53
  pip3 install --no-cache-dir --upgrade pip && \
54
  pip3 install --no-cache-dir -r requirements.txt; \