-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile.debian.x11vnc
85 lines (67 loc) · 2.89 KB
/
Dockerfile.debian.x11vnc
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
79
80
81
82
83
84
85
FROM python:3.7-slim-buster
EXPOSE 5900-5904
EXPOSE 4001
EXPOSE 8080
ENV FS_MIGRATE_VERSION "2.0.2"
ENV KUBO_VERSION "0.15.0"
ENV IPFS_DIST_OS "linux"
ENV NOTBIT_DIST_URL="https://gitlab.com/api/v4/projects/27627112/packages/generic/notbit/0.7/notbit.tar.gz"
ENV X11VNC_PASSWORD="galacteek"
ENV DEBIAN_FRONTEND="noninteractive"
ENV QT_QPA_PLATFORM=xcb
ENV DISPLAY=:99
ENV XVFB_WHD=1024x768x24
ENV PYTHONPATH="/usr/local/lib/python3.7/site-packages"
RUN apt-get update && apt-get install -q -y --force-yes \
gcc git net-tools iproute2 \
libdb5.3-dev libdb-dev libdb5.3 \
file libmagic1 libmagic-mgc \
libgl1-mesa-glx libnss3 libxtst6 libxext6 \
libasound2 libegl1-mesa libpulse-mainloop-glib0 libpulse0 \
libzbar0 xvfb xorg dbus-x11 wget \
xfonts-100dpi xfonts-75dpi x11vnc fluxbox \
libxkbcommon-x11-0 libxkbcommon0 libgl1 xinit x11-xserver-utils \
libxcb-xkb1 libxcb-icccm4 libxcb-composite0 libxcb-util0 \
libxcb-image0 libxcb-keysyms1 libxcb-render-util0 \
libxcb-xinerama0 libqt5multimedia5 libqt5multimediaquick5
WORKDIR /usr/local
# Get ipfs binary and fs-repo-migrations
RUN wget https://dist.ipfs.tech/kubo/v0.15.0/kubo_v0.15.0_linux-amd64.tar.gz && \
tar -xvf kubo_v0.15.0_linux-amd64.tar.gz && \
cp kubo/ipfs /usr/local/bin && rm kubo_v0.15.0_linux-amd64.tar.gz
RUN wget https://dist.ipfs.tech/kubo/v${KUBO_VERSION}/kubo_v${KUBO_VERSION}_${IPFS_DIST_OS}-amd64.tar.gz && \
tar -xvf kubo_v${KUBO_VERSION}_${IPFS_DIST_OS}-amd64.tar.gz && \
cp kubo/ipfs /usr/local/bin && \
rm kubo_v${KUBO_VERSION}_${IPFS_DIST_OS}-amd64.tar.gz
RUN wget https://dist.ipfs.tech/fs-repo-migrations/v${FS_MIGRATE_VERSION}/fs-repo-migrations_v${FS_MIGRATE_VERSION}_${IPFS_DIST_OS}-amd64.tar.gz
RUN tar -xzvf \
fs-repo-migrations_v${FS_MIGRATE_VERSION}_${IPFS_DIST_OS}-amd64.tar.gz && \
cp fs-repo-migrations/fs-repo-migrations /usr/bin
# Add source code.
COPY README.rst COPYING LICENSE LICENSE.go-ipfs \
requirements*.txt setup.py galacteek.pro \
/usr/local/galacteek/
COPY share /usr/local/galacteek/share
COPY galacteek/ /usr/local/galacteek/galacteek
COPY requirements.txt requirements-dev.txt \
requirements-extra-markdown.txt \
requirements-rdf-bsddb.txt \
requirements-ui-pyqt-5.15.txt \
./
RUN pip install -U pip wheel && pip install -r requirements.txt && \
pip install -r requirements-dev.txt && \
pip install -r requirements-extra-markdown.txt && \
pip install -r requirements-rdf-bsddb.txt && \
pip install -r requirements-ui-pyqt-5.15.txt && \
pip install "git+https://gitlab.com/galacteek/galacteek-starter"
RUN apt-get remove -y gcc perl
RUN ln -s /usr/lib/x86_64-linux-gnu/libxcb-util.so.0 \
/usr/lib/x86_64-linux-gnu/libxcb-util.so.1
RUN wget ${NOTBIT_DIST_URL} && \
tar -C /usr/bin -xvf notbit.tar.gz && \
rm notbit.tar.gz
RUN useradd -m -u 1000 galacteek
COPY .docker/x11vnc_start.sh /
RUN chmod +x /x11vnc_start.sh
USER galacteek
CMD ["/x11vnc_start.sh", "galacteek-starter", "--config-ipfs-auto", "-d"]