mn9206986 commited on
Commit
89d615b
verified
1 Parent(s): acf4f36

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +36 -0
Dockerfile ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM alpine:3.19.1
2
+
3
+ LABEL AboutImage "Alpine_Chromium_NoVNC"
4
+ LABEL Maintainer "Apurv Vyavahare <apurvvyavahare@gmail.com>"
5
+
6
+ # VNC Server configs
7
+ ENV VNC_PASS="CHANGE_IT" \
8
+ VNC_TITLE="Chromium" \
9
+ VNC_RESOLUTION="1280x720" \
10
+ VNC_SHARED=false \
11
+ DISPLAY=:0 \
12
+ NOVNC_PORT=$PORT \
13
+ PORT=7860 \
14
+ NO_SLEEP=false \
15
+ LANG=en_US.UTF-8 \
16
+ LANGUAGE=en_US.UTF-8 \
17
+ LC_ALL=C.UTF-8 \
18
+ TZ="Asia/Kolkata"
19
+
20
+ # C脿i packages c岷 thi岷縯
21
+ RUN apk update && \
22
+ apk add --no-cache git tzdata ca-certificates supervisor curl wget openssl bash python3 py3-requests sed unzip xvfb x11vnc websockify openbox chromium nss alsa-lib font-noto font-noto-cjk && \
23
+ # Clone repo v脿 copy assets
24
+ git clone https://github.com/vital987/chrome-novnc.git /tmp/chrome-novnc && \
25
+ cp -r /tmp/chrome-novnc/assets/* / && \
26
+ rm -rf /tmp/chrome-novnc && \
27
+ # T岷 SSL certificate cho noVNC
28
+ openssl req -new -newkey rsa:4096 -days 36500 -nodes -x509 -subj "/C=IN/O=Dis/CN=www.google.com" -keyout /etc/ssl/novnc.key -out /etc/ssl/novnc.cert > /dev/null 2>&1 && \
29
+ # TimeZone
30
+ cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
31
+ # X贸a c谩c file t岷
32
+ apk del curl wget unzip tzdata openssl git && \
33
+ rm -rf /var/cache/apk/* /tmp/*
34
+
35
+ ENTRYPOINT ["supervisord", "-l", "/var/log/supervisord.log", "-c"]
36
+ CMD ["/config/supervisord.conf"]