doltd1no commited on
Commit
b294dd1
·
verified ·
1 Parent(s): 2de80c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -21
Dockerfile CHANGED
@@ -1,26 +1,33 @@
1
- FROM lscr.io/linuxserver/code-server:latest
 
2
 
3
- # 1. Environment Configuration
4
- ENV PUID=1000
5
- ENV PGID=1000
6
- ENV TZ=Etc/UTC
7
 
8
- # 2. KasmVNC Settings
9
- ENV KASM_PORT=3000
10
- ENV TITLE="MS Edge"
11
- ENV FM_HOME=/config
 
12
 
13
- # 3. FLAGS TO ENABLE WEBGL (The Fix)
14
- # --use-gl=swiftshader: Forces to use CPU for 3D graphics (SwiftShader).
15
- # --enable-webgl: explicitly turns it on.
16
- # --ignore-gpu-blocklist: Forces EDGE to ignore the fact that there is no real GPU.
17
- # We REMOVED '--disable-gpu' and '--disable-software-rasterizer'.
18
- ENV EDGE_CLI="--no-sandbox --disable-dev-shm-usage --use-gl=swiftshader --enable-webgl --ignore-gpu-blocklist --disable-features=DnsOverHttpsUpgrade --dns-result-order=ipv4first"
19
 
20
- # 4. Permission Fix (Prevents Crash Loop)
21
- RUN mkdir -p /config && \
22
- chown -R 1000:1000 /config && \
23
- chmod -R 777 /config
24
 
25
- # Expose the internal port
26
- EXPOSE 3000
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VS Code with Root Access - Simple & Stable
2
+ FROM ubuntu:22.04
3
 
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+ ENV PORT=8000
 
 
6
 
7
+ # Install minimal required packages
8
+ RUN apt-get update && \
9
+ apt-get install -y curl wget git vim nano build-essential ca-certificates && \
10
+ curl -fsSL https://code-server.dev/install.sh | sh && \
11
+ apt-get clean && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Create workspace
14
+ RUN mkdir -p /workspace && \
15
+ echo '# VS Code Workspace' > /workspace/README.md && \
16
+ echo 'console.log("Hello World!");' > /workspace/app.js
 
 
17
 
18
+ # Simple aliases
19
+ RUN echo 'alias ll="ls -la"' >> /root/.bashrc
 
 
20
 
21
+ WORKDIR /workspace
22
+ EXPOSE $PORT
23
+
24
+ # Simple, direct startup - no complex process management
25
+ CMD echo "🚀 Starting VS Code as ROOT" && \
26
+ echo "🔐 Password: $PASSWORD" && \
27
+ echo "🔗 Port: $PORT" && \
28
+ code-server \
29
+ --bind-addr "0.0.0.0:$PORT" \
30
+ --auth password \
31
+ --disable-telemetry \
32
+ --log warn \
33
+ /workspace