psyflowz commited on
Commit
4b8f63a
·
verified ·
1 Parent(s): 298184c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -37
Dockerfile CHANGED
@@ -3,58 +3,40 @@ FROM ubuntu:22.04
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
  # ========================
6
- # BASE SYSTEM
7
  # ========================
8
  RUN apt update && apt install -y \
9
- curl wget git nano sudo unzip \
10
- build-essential software-properties-common \
11
- ca-certificates gnupg lsb-release \
12
- python3 python3-pip python3-venv \
13
- apt-transport-https \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # ========================
17
- # NODEJS
18
  # ========================
19
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
20
  apt install -y nodejs
21
 
22
- RUN npm install -g npm yarn pnpm pm2 nodemon express-generator
 
 
 
 
 
 
23
 
24
- # ========================
25
- # PYTHON SAFE AI STACK
26
- # ========================
27
- RUN pip3 install --upgrade pip
28
-
29
- RUN pip3 install \
30
- fastapi \
31
- uvicorn \
32
- flask \
33
- requests \
34
- numpy \
35
- pandas \
36
- transformers \
37
- huggingface_hub \
38
- datasets \
39
- accelerate
40
-
41
- # ⚠️ Install torch separately (safer CPU version)
42
- RUN pip3 install torch --index-url https://download.pytorch.org/whl/cpu
43
-
44
- RUN pip3 install "huggingface_hub[cli]"
45
 
46
  # ========================
47
- # CODE-SERVER (FIXED)
48
  # ========================
49
- RUN curl -fsSL https://code-server.dev/install.sh | sh
50
 
51
  # ========================
52
- # USER SETUP (FIXED)
53
  # ========================
54
- RUN useradd -m developer || true && \
55
- echo "developer:developer" | chpasswd || true && \
56
- groupadd sudo || true && \
57
- usermod -aG sudo developer || true
58
 
59
  USER developer
60
  WORKDIR /home/developer
@@ -62,6 +44,9 @@ WORKDIR /home/developer
62
  # ========================
63
  # PORTS
64
  # ========================
65
- EXPOSE 8080 3000 8000
66
 
 
 
 
67
  CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"]
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
  # ========================
6
+ # BASIC TOOLS
7
  # ========================
8
  RUN apt update && apt install -y \
9
+ curl wget git nano unzip sudo \
10
+ build-essential ca-certificates \
 
 
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # ========================
14
+ # NODE + NPM
15
  # ========================
16
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
17
  apt install -y nodejs
18
 
19
+ # Core global tools
20
+ RUN npm install -g \
21
+ npm@latest \
22
+ typescript \
23
+ ts-node \
24
+ nodemon \
25
+ pm2
26
 
27
+ # Your requested AI CLI
28
+ RUN npm install -g opencode-ai
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  # ========================
31
+ # CODE-SERVER (VS CODE WEB)
32
  # ========================
33
+ RUN curl -fsSL https://code-server.dev/install.sh | bash
34
 
35
  # ========================
36
+ # USER SETUP (HF SAFE)
37
  # ========================
38
+ RUN useradd -m developer && \
39
+ echo "developer:developer" | chpasswd
 
 
40
 
41
  USER developer
42
  WORKDIR /home/developer
 
44
  # ========================
45
  # PORTS
46
  # ========================
47
+ EXPOSE 8080
48
 
49
+ # ========================
50
+ # START
51
+ # ========================
52
  CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"]