Files
docker-dogecoin-core/Dockerfile
2022-05-05 14:48:33 +02:00

43 lines
1.1 KiB
Docker

FROM ich777/novnc-baseimage
LABEL org.opencontainers.image.authors="admin@minenet.at"
LABEL org.opencontainers.image.source="https://github.com/ich777/docker-dogecoin-core"
RUN apt-get update && \
apt-get -y install libxkbcommon-x11-0 && \
export TZ=Europe/Rome && \
sed -i '/ document.title =/c\ document.title = "Dogecoin-Core - noVNC";' /usr/share/novnc/app/ui.js && \
rm /usr/share/novnc/app/images/icons/* && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR=/dogecoin
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="dogecoin"
RUN mkdir $DATA_DIR && \
useradd -d $DATA_DIR -s /bin/bash $USER && \
chown -R $USER $DATA_DIR && \
mkdir /etc/.fluxbox && \
ulimit -n 2048
ADD /scripts/ /opt/scripts/
COPY /icons/* /usr/share/novnc/app/images/icons/
COPY /conf/ /etc/.fluxbox/
RUN chmod -R 770 /opt/scripts/ && \
chown -R ${UID}:${GID} /etc/.fluxbox && \
chmod -R 770 /etc/.fluxbox
EXPOSE 8080
#Server Start
ENTRYPOINT ["/opt/scripts/start.sh"]