# debian.sh --arch 'amd64' out/ 'bookworm' '@1733097600' |
LABEL org.opencontainers.image.authors=admin@minenet.at |
LABEL org.opencontainers.image.source=https://github.com/ich777/docker-debian-baseimage |
RUN /bin/sh -c echo "deb http://deb.debian.org/debian bookworm contrib non-free non-free-firmware" >> /etc/apt/sources.list && apt-get update && apt-get -y upgrade && apt-get -y install --no-install-recommends wget locales procps && touch /etc/locale.gen && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen && apt-get -y install --reinstall ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit |
ENV LANG=en_US.UTF-8 |
ENV LANGUAGE=en_US:en |
ENV LC_ALL=en_US.UTF-8 |
LABEL org.opencontainers.image.authors=admin@minenet.at |
LABEL org.opencontainers.image.source=https://github.com/ich777/docker-novnc-baseimage |
ARG NOVNC_V=1.5.0 |
ARG TURBOVNC_V=3.1.3 |
COPY novnccheck /usr/bin # buildkit |
RUN |2 NOVNC_V=1.5.0 TURBOVNC_V=3.1.3 /bin/sh -c chmod 755 /usr/bin/novnccheck # buildkit |
RUN |2 NOVNC_V=1.5.0 TURBOVNC_V=3.1.3 /bin/sh -c cd /tmp && wget -O /tmp/novnc.tar.gz https://github.com/novnc/noVNC/archive/v${NOVNC_V}.tar.gz && tar -xvf /tmp/novnc.tar.gz && cd /tmp/noVNC* && sed -i 's/credentials: { password: password } });/credentials: { password: password },\n wsProtocols: ["'"binary"'"] });/g' app/ui.js && mkdir -p /usr/share/novnc && cp -r app /usr/share/novnc/ && cp -r core /usr/share/novnc/ && cp -r utils /usr/share/novnc/ && cp -r vendor /usr/share/novnc/ && cp -r vnc.html /usr/share/novnc/ && cp package.json /usr/share/novnc/ && cd /usr/share/novnc/ && chmod -R 755 /usr/share/novnc && rm -rf /tmp/noVNC* /tmp/novnc.tar.gz # buildkit |
COPY index.html /usr/share/novnc/ # buildkit |
RUN |2 NOVNC_V=1.5.0 TURBOVNC_V=3.1.3 /bin/sh -c apt-get update && apt-get -y install --no-install-recommends xvfb wmctrl x11vnc websockify fluxbox screen libxcomposite-dev libxcursor1 xauth && sed -i '/ document.title =/c\ document.title = "noVNC";' /usr/share/novnc/app/ui.js # buildkit |
RUN |2 NOVNC_V=1.5.0 TURBOVNC_V=3.1.3 /bin/sh -c cd /tmp && wget -O /tmp/turbovnc.deb https://github.com/TurboVNC/turbovnc/releases/download/${TURBOVNC_V}/turbovnc_${TURBOVNC_V}_amd64.deb && apt -y install /tmp/turbovnc.deb && rm -rf /opt/TurboVNC/java /opt/TurboVNC/README.txt && cp -R /opt/TurboVNC/bin/* /bin/ && rm -rf /opt/TurboVNC /tmp/turbovnc.deb && sed -i '/# $enableHTTP = 1;/c\$enableHTTP = 0;' /etc/turbovncserver.conf && rm -rf /var/lib/apt/lists/* # buildkit |
ENV CUSTOM_RES_W=640 |
ENV CUSTOM_RES_H=480 |
COPY /x11vnc /usr/bin/x11vnc # buildkit |
RUN |2 NOVNC_V=1.5.0 TURBOVNC_V=3.1.3 /bin/sh -c chmod 751 /usr/bin/x11vnc # buildkit |
LABEL org.opencontainers.image.authors=admin@minenet.at |
LABEL org.opencontainers.image.source=https://github.com/ich777/docker-electroncash |
RUN /bin/sh -c export TZ=Europe/Rome && apt-get update && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt-get -y install --no-install-recommends python3-pyqt5 python3-pyqt5.qtsvg python3-zxing-cpp jq && rm -rf /var/lib/apt/lists/* && sed -i '/ document.title =/c\ document.title = "Electron Cash - noVNC";' /usr/share/novnc/app/ui.js && rm /usr/share/novnc/app/images/icons/* # buildkit |
ENV DATA_DIR=/electroncash |
ENV CUSTOM_RES_W=1024 |
ENV CUSTOM_RES_H=768 |
ENV CUSTOM_DEPTH=16 |
ENV NOVNC_PORT=8080 |
ENV RFB_PORT=5900 |
ENV TURBOVNC_PARAMS=-securitytypes none |
ENV UMASK=000 |
ENV UID=99 |
ENV GID=100 |
ENV DATA_PERM=770 |
ENV USER=electroncash |
RUN /bin/sh -c mkdir $DATA_DIR && useradd -d $DATA_DIR -s /bin/bash $USER && chown -R $USER $DATA_DIR && mkdir /etc/.fluxbox && ulimit -n 2048 # buildkit |
ADD /scripts/ /opt/scripts/ # buildkit |
COPY /icons/* /usr/share/novnc/app/images/icons/ # buildkit |
COPY /conf/ /etc/.fluxbox/ # buildkit |
RUN /bin/sh -c chmod -R 770 /opt/scripts/ && chown -R ${UID}:${GID} /etc/.fluxbox && chmod -R 770 /etc/.fluxbox # buildkit |
EXPOSE map[8080/tcp:{}] |
ENTRYPOINT ["/opt/scripts/start.sh"] |