30 lines
797 B
Docker
30 lines
797 B
Docker
FROM ethereum/solc:0.6.12
|
|
|
|
# The solc image messes up the alpine environment, so we have to go all over again
|
|
FROM alpine
|
|
COPY --from=0 /usr/bin/solc /usr/bin/solc
|
|
|
|
RUN apk update && \
|
|
apk add make
|
|
|
|
WORKDIR /usr/src
|
|
|
|
COPY ./Makefile ./cic-contracts/Makefile
|
|
COPY ./*.sol ./cic-contracts/
|
|
|
|
RUN cd cic-contracts && \
|
|
make -B && make install -B
|
|
|
|
#RUN mkdir -vp /usr/local/share/cic/solidity && \
|
|
# cp -rv cic-contracts/abis
|
|
|
|
FROM python:3.8.6-alpine
|
|
|
|
COPY --from=0 /usr/bin/solc /usr/bin/solc
|
|
COPY --from=1 /usr/local/share/cic/ /usr/local/share/cic/
|
|
|
|
LABEL authors="Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746"
|
|
LABEL spdx-license-identifier="GPL-3.0-or-later"
|
|
LABEL description="Ethereum smart contract interfaces used by the CIC component suite"
|
|
LABEL version="1"
|