b1ghawk commited on
Commit
ff529fd
·
1 Parent(s): 90a97ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -50
Dockerfile CHANGED
@@ -1,51 +1,5 @@
1
- FROM ubuntu:22.04
 
2
 
3
- LABEL AboutImage "Ubuntu22.04_Chromium_NoVNC"
4
-
5
- LABEL Maintainer "Apoorv Vyavahare <[email protected]>"
6
-
7
- ARG DEBIAN_FRONTEND=noninteractive
8
-
9
- #VNC Server Password
10
- ENV VNC_PASS="samplepass" \
11
- #VNC Server Title(w/o spaces)
12
- VNC_TITLE="Chromium" \
13
- #VNC Resolution(720p is preferable)
14
- VNC_RESOLUTION="1280x720" \
15
- #VNC Shared Mode (0=off, 1=on)
16
- VNC_SHARED=0 \
17
- #Local Display Server Port
18
- DISPLAY=:0 \
19
- #NoVNC Port
20
- NOVNC_PORT=$PORT \
21
- PORT=8080 \
22
- #Locale
23
- LANG=en_US.UTF-8 \
24
- LANGUAGE=en_US.UTF-8 \
25
- LC_ALL=C.UTF-8 \
26
- TZ="Asia/Kolkata"
27
-
28
- COPY rootfs/ /
29
-
30
- SHELL ["/bin/bash", "-c"]
31
-
32
- RUN apt-get update && \
33
- apt-get install -y tzdata ca-certificates supervisor curl wget python3 python3-pip sed unzip xvfb x11vnc websockify openbox libnss3 libgbm-dev libasound2 fonts-droid-fallback && \
34
- #Chromium
35
- wget https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1235467%2Fchrome-linux.zip?alt=media -O /tmp/chrome-linux.zip && \
36
- unzip /tmp/chrome-linux.zip -d /opt && \
37
- #noVNC
38
- openssl req -new -newkey rsa:4096 -days 36500 -nodes -x509 -subj "/C=IN/ST=Maharastra/L=Private/O=Dis/CN=www.google.com" -keyout /etc/ssl/novnc.key -out /etc/ssl/novnc.cert && \
39
- #TimeZone
40
- ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
41
- echo $TZ > /etc/timezone && \
42
- #Wipe Temp Files
43
- rm -rf /var/lib/apt/lists/* && \
44
- apt-get remove -y wget python3-pip unzip && \
45
- apt-get -y autoremove && \
46
- apt-get clean && \
47
- rm -rf /tmp/*
48
-
49
- ENTRYPOINT ["supervisord", "-l", "/var/log/supervisord.log", "-c"]
50
-
51
- CMD ["/config/supervisord.conf"]
 
1
+ FROM accetto/ubuntu-vnc-xfce-firefox-plus
2
+ WORKDIR /dockerstartup
3
 
4
+ EXPOSE 6901
5
+ ENTRYPOINT ["./vnc_startup.sh"]