Skip to content
Snippets Groups Projects
Dockerfile 971 B
Newer Older
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>"
CMD		[ "/bin/bash" ]
COPY		--from=solc /usr/local/bin/solc /usr/local/bin
EXPOSE          8545 8546 30303
ENV		USERNAME=bfa HOME=/home/bfa BFAHOME=/home/bfa/bfa BFANETWORKIDPROD=47525974938 BFANETWORKIDTEST=55555000000 VIRTUALIZATION=DOCKER BFANETWORKDIRPROD=/home/bfa/bfa/network BFANETWORKDIRTEST=/home/bfa/bfa/test2network PATH=/home/bfa/bfa/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 && find /var/cache/apk -type f -delete
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