FROM debian@sha256:bf338ddc710dfb9b907a29ba661b35d0f6b3eae043515c4315f64c6e93409e94 LABEL MAINTAINER=chamalow <@qio8/4L4vnzq3qRD0dqKI7sTpey54u8ZWbaICfpJOZw=.ed25519> ENV DEBIAN_FRONTEND noninteractive ENV NVM_INSTALL_DIR /opt/nvm ENV NVM_DIR /usr/local/nvm ENV NODE_VERSION v12.16.1 RUN apt-get update -y && \ apt-get install autoconf=2.69-11.1 build-essential=12.8 python3-pip=20.0.2-2 python3-setuptools=44.0.0-1 libsodium-dev=1.0.18-1 jq=1.6-1 make=4.2.1-1.2 git=1:2.25.1-1 gcc=4:9.2.1-3.1 base58=1.0.3-1 libtool=2.4.6-14 curl=7.68.0-1 git=1:2.25.1-1 bc=1.07.1-2+b2 -y && \ pip3 install duniterpy==0.56.0 silkaj==0.7.6 && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ useradd -ms /bin/bash astroport RUN git clone https://github.com/creationix/nvm.git $NVM_INSTALL_DIR && \ . $NVM_INSTALL_DIR/nvm.sh && \ nvm install --lts && \ nvm alias default $NODE_VERSION && \ nvm use default && \ echo "export NVM_DIR=${NVM_DIR}" > /home/astroport/.bashrc && \ echo ". ${NVM_INSTALL_DIR}/nvm.sh" > /home/astroport/.bashrc && \ chown -R astroport:astroport $NVM_DIR USER astroport RUN . ~/.bashrc && \ mkdir -p /home/astroport/.ssb/ && \ npm install -g sodium-native@3.0.0 ssb-backlinks@1.0.0 && \ npm install -g fraction/oasis#semver: VOLUME [ "/home/astroport/.ssb"] EXPOSE 3000 EXPOSE 8008 ENTRYPOINT ["/bin/bash"] CMD ["-c", ". ~/.bashrc && oasis --host 0.0.0.0 --open false && tail -f /dev/null"]