psyflowz commited on
Commit
2c54401
·
verified ·
1 Parent(s): 4b8f63a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -27
Dockerfile CHANGED
@@ -3,11 +3,11 @@ FROM ubuntu:22.04
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
  # ========================
@@ -16,37 +16,24 @@ RUN apt update && apt install -y \
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
43
 
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"]
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
  # ========================
6
+ # BASE TOOLS
7
  # ========================
8
  RUN apt update && apt install -y \
9
+ curl wget git nano ca-certificates \
10
+ build-essential \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # ========================
 
16
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
17
  apt install -y nodejs
18
 
19
+ RUN npm install -g npm@latest
20
+
21
+ # ========================
22
+ # GLOBAL TOOLS
23
+ # ========================
24
  RUN npm install -g \
 
25
  typescript \
26
  ts-node \
27
  nodemon \
28
+ pm2 \
29
+ opencode-ai
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  # ========================
32
+ # SSHX INSTALL
33
  # ========================
34
+ RUN curl -sSf https://sshx.io/get | sh
35
 
36
  # ========================
37
+ # START SSHX (AUTO)
38
  # ========================
39
+ CMD ["sshx"]