mn9206986 commited on
Commit
33a8567
verified
1 Parent(s): 9986df7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -37
Dockerfile CHANGED
@@ -1,41 +1,19 @@
1
- FROM alpine:3.19.1
 
2
 
3
- LABEL AboutImage "Alpine_Chromium_NoVNC"
4
- LABEL Maintainer "Apurv Vyavahare <apurvvyavahare@gmail.com>"
5
 
6
- ENV VNC_PASS="CHANGE_IT" \
7
- VNC_TITLE="Chromium" \
8
- VNC_RESOLUTION="1280x720" \
9
- VNC_SHARED=false \
10
- DISPLAY=:0 \
11
- NOVNC_PORT=$PORT \
12
- PORT=7860 \
13
- NO_SLEEP=false \
14
- LANG=en_US.UTF-8 \
15
- LANGUAGE=en_US.UTF-8 \
16
- LC_ALL=C.UTF-8 \
17
- TZ="Asia/Kolkata"
18
 
19
- RUN mkdir -p /config/supervisor /var/log && \
20
- apk update && apk add --no-cache \
21
- tzdata ca-certificates supervisor bash python3 py3-pip sed unzip \
22
- xvfb x11vnc websockify openbox chromium nss alsa-lib \
23
- font-noto font-noto-cjk git && \
24
- cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
25
- pip install --no-cache-dir torch torchvision transformers diffusers accelerate
 
 
26
 
27
- RUN openssl req -new -newkey rsa:4096 -days 36500 -nodes -x509 \
28
- -subj "/C=IN/O=Dis/CN=www.google.com" \
29
- -keyout /etc/ssl/novnc.key -out /etc/ssl/novnc.cert > /dev/null 2>&1
30
-
31
- # Clone repo chrome-novnc, copy assets + ch铆nh supervisord.conf
32
- RUN git clone https://github.com/vital987/chrome-novnc.git /tmp/chrome-novnc && \
33
- cp -r /tmp/chrome-novnc/assets/* / && \
34
- cp /tmp/chrome-novnc/assets/config/supervisord.conf /config/supervisord.conf && \
35
- rm -rf /tmp/chrome-novnc
36
-
37
- # T岷 file log supervisor c贸 quy峄乶 ghi
38
- RUN touch /var/log/supervisord.log && chmod 666 /var/log/supervisord.log
39
-
40
- ENTRYPOINT ["supervisord", "-l", "/var/log/supervisord.log", "-c"]
41
- CMD ["/config/supervisord.conf"]
 
1
+ FROM ubuntu:trusty
2
+ MAINTAINER Sean Payne <seantpayne+docker@gmail.com>
3
 
4
+ ENV DEBIAN_FRONTEND noninteractive
 
5
 
6
+ ADD startup.sh /startup.sh
 
 
 
 
 
 
 
 
 
 
 
7
 
8
+ RUN apt-get update -y && \
9
+ apt-get install -y git x11vnc wget python python-numpy unzip Xvfb firefox openbox geany menu && \
10
+ cd /root && git clone https://github.com/kanaka/noVNC.git && \
11
+ cd noVNC/utils && git clone https://github.com/kanaka/websockify websockify && \
12
+ cd /root && \
13
+ chmod 0755 /startup.sh && \
14
+ apt-get autoclean && \
15
+ apt-get autoremove && \
16
+ rm -rf /var/lib/apt/lists/*
17
 
18
+ CMD /startup.sh
19
+ EXPOSE 6080