Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
78 lines (70 loc) · 2.25 KB
/
Copy pathDockerfile
File metadata and controls
78 lines (70 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive \
LANG=tr_TR.UTF-8 \
LANGUAGE=tr_TR:tr \
LC_ALL=tr_TR.UTF-8 \
DISPLAY=:0 \
RESOLUTION=1600x900x24
RUN apt-get update && apt-get install -y --no-install-recommends \
xvfb \
openbox \
x11vnc \
novnc \
websockify \
supervisor \
curl \
ca-certificates \
locales \
language-pack-tr \
x11-xserver-utils \
x11-xkb-utils \
numlockx \
autocutsel \
xclip \
fonts-dejavu \
fonts-freefont-ttf \
openjdk-11-jre \
libgtk-3-0 \
libnss3 \
libasound2 \
libxss1 \
libxtst6 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxi6 \
libxrandr2 \
libgbm1 \
libpango-1.0-0 \
libcairo2 \
libatk1.0-0 \
libatk-bridge2.0-0 \
xdg-utils \
lxpanel \
pcmanfm \
libxml2-utils \
inotify-tools \
&& locale-gen tr_TR.UTF-8 \
&& update-locale LANG=tr_TR.UTF-8 LC_ALL=tr_TR.UTF-8 \
&& ln -sf /usr/share/novnc/vnc.html /usr/share/novnc/index.html \
&& curl -sSL -o /tmp/ows.deb https://github.com/karakun/OpenWebStart/releases/download/v1.14.0/OpenWebStart_linux_1_14_0.deb \
&& apt-get install -y --no-install-recommends /tmp/ows.deb \
&& rm -f /tmp/ows.deb \
&& mkdir -p /root/Desktop /root/.local/share/applications /root/.config/openbox /root/.config/pcmanfm/default /app/config /app/scripts /app/jnlp \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# noVNC Clipboard entegrasyonu
COPY web/clipboard-sync.js /usr/share/novnc/clipboard-sync.js
RUN sed -i 's|<script[^>]*clipboard-sync\.js[^>]*></script>||g' /usr/share/novnc/vnc.html \
&& sed -i 's|</body>|<script type="module" src="clipboard-sync.js"></script></body>|g' /usr/share/novnc/vnc.html
# Konfigürasyonlar
COPY config/rc.xml /root/.config/openbox/rc.xml
COPY config/supervisord.conf /etc/supervisord.conf
COPY config/ /app/config/
# Başlatıcı Scriptler
COPY scripts/entrypoint.sh /app/scripts/entrypoint.sh
COPY scripts/make-shortcuts.sh /app/scripts/make-shortcuts.sh
COPY scripts/watch-shortcuts.sh /app/scripts/watch-shortcuts.sh
RUN chmod +x /app/scripts/entrypoint.sh /app/scripts/make-shortcuts.sh /app/scripts/watch-shortcuts.sh
EXPOSE 6080
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]