forked from furritos/docker-smapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
79 lines (66 loc) · 2.05 KB
/
Dockerfile
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
# Pull base image
FROM debian:bullseye-slim
# SMAPP version
ARG SMAPP_VERSION=1.4.2
# SMAPP Debian Package
ARG SMAPP_APP=spacemesh_app_${SMAPP_VERSION}_amd64.deb
# Define software download URLs
ARG SMAPP_URL=https://storage.googleapis.com/smapp/v${SMAPP_VERSION}/${SMAPP_APP}
# root Home
ARG ROOT_HOME=/root
# noVNC Home
ARG NOVNC_HOME=${ROOT_HOME}/noVNC
# Install Fluxbox, noVNC and download SMAPP
RUN apt-get update && \
env DEBIAN_FRONTEND=noninteractive apt reinstall -y ca-certificates && \
update-ca-certificates && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
eterm \
firefox-esr \
fluxbox \
openssl \
libasound-dev \
libgbm-dev \
libnotify4 \
libnss3 \
libnspr4 \
libsecret-1-0 \
libsecret-common \
supervisor \
x11vnc \
xdg-utils \
git \
x11-utils \
xvfb && \
git clone --depth 1 https://github.com/novnc/noVNC ${NOVNC_HOME} && \
git clone --depth 1 https://github.com/novnc/websockify ${NOVNC_HOME}/utils/websockify && \
curl -# -L -o ${SMAPP_APP} ${SMAPP_URL} && \
dpkg -i ${SMAPP_APP} && \
mkdir -p ${ROOT_HOME}/.fluxbox && \
rm -rf ${NOVNC_HOME}/.git && \
rm -rf ${NOVNC_HOME}/utils/websockify/.git && \
rm -f ${SMAPP_APP} && \
rm -rf /var/lib/apt/lists/*
# Copy Supervisor Daemon configuration
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Copy Spacemesh wallpaper
COPY spacemesh-wallpaper.png /usr/share/images/fluxbox/spacemesh-wallpaper.png
# Copy Fluxbox configurations
ADD ./fluxbox ${ROOT_HOME}/.fluxbox
# Expose the noVNC port
EXPOSE 8080
# Expose the SMAPP node port
EXPOSE 7513/tcp
EXPOSE 7513/udp
# Setup environment variables
ENV HOME=${ROOT_HOME} \
DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
DISPLAY=:0.0 \
DISPLAY_WIDTH=1440 \
DISPLAY_HEIGHT=900
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]