Skip to content
Snippets Groups Projects
Dockerfile 1.3 KiB
Newer Older
Robert Martin-Legene's avatar
Robert Martin-Legene committed
FROM            ethereum/solc:0.5.10-alpine AS solc
FROM		ethereum/client-go:alltools-v1.9.2
LABEL		maintainer="Robert Martin-Legene <robert@nic.ar>"
HEALTHCHECK	--start-period=15s CMD [ "/usr/bin/nc", "-z", "-w", "2", "127.0.0.1", "8545" ]
CMD		[ "/home/bfa/bfa/bin/singlestart.sh" ]
COPY		--from=solc /usr/local/bin/solc /usr/local/bin
EXPOSE          8545 8546 30303
ENV		USERNAME=bfa HOME=/home/bfa
ENV		BFAHOME=${HOME}/bfa BFANETWORKIDPROD=47525974938 BFANETWORKIDTEST=55555000000 VIRTUALIZATION=DOCKER
ENV		BFANETWORKDIRPROD=${BFAHOME}/network BFANETWORKDIRTEST=${BFAHOME}/test2network PATH=${BFAHOME}/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN		adduser -u 30303 -s /bin/bash -h ${HOME} -D ${USERNAME} ${USERNAME} && apk add --no-cache git bash jq perl perl-class-accessor perl-json perl-json-xs perl-lwp-protocol-https nodejs npm binutils python3 curl && rm -f /var/cache/apk/*
Robert Martin-Legene's avatar
Robert Martin-Legene committed
USER		${USERNAME}
WORKDIR 	${HOME}
RUN		git clone --quiet https://gitlab.bfa.ar/blockchain/nucleo.git ${BFAHOME} && cd ${BFAHOME} && npm install --no-optional && npm audit fix
ENV     	BFANETWORKID=${BFANETWORKIDPROD} BFANETWORKDIR=${BFANETWORKDIRPROD}
ENV		BFANODEDIR=${BFANETWORKDIR}/node BFATOML=${BFANETWORKDIR}/config.toml
RUN		mkdir -p ${BFANODEDIR} && ln -s ${BFANODEDIR} .ethereum
WORKDIR 	${BFAHOME}
VOLUME          [ "/home/bfa" ]