doltd1no commited on
Commit
514f7d5
·
verified ·
1 Parent(s): 9a33045

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # We use Chromium (lighter than Brave, same engine)
2
+ FROM lscr.io/linuxserver/chromium:latest
3
+
4
+ # 1. Environment Configuration
5
+ ENV PUID=1000
6
+ ENV PGID=1000
7
+ ENV TZ=Etc/UTC
8
+
9
+ # 2. Login Details (Change these!)
10
+ ENV CUSTOM_USER=admin
11
+ ENV PASSWORD=chrome
12
+
13
+ # 3. KasmVNC Settings
14
+ ENV KASM_PORT=3000
15
+ ENV TITLE="Chromium Cloud"
16
+ ENV FM_HOME=/config
17
+
18
+ # 4. CRITICAL Performance & DNS Flags
19
+ # CHROME_CLI is the variable for Chromium (instead of BRAVE_ARGS)
20
+ # We included the DNS fixes so YouTube works immediately.
21
+ ENV CHROME_CLI="--no-sandbox --disable-gpu --disable-dev-shm-usage --disable-software-rasterizer --disable-features=DnsOverHttpsUpgrade --dns-result-order=ipv4first"
22
+
23
+ # 5. Build-Time Permission Fix (Prevents Crash Loop)
24
+ RUN mkdir -p /config && \
25
+ chown -R 1000:1000 /config && \
26
+ chmod -R 777 /config
27
+
28
+ # Expose the internal port
29
+ EXPOSE 3000