-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 1023 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM eosio/builder as builder
RUN git clone https://github.com/EOSIO/eos.git --recursive
WORKDIR /eos
RUN cmake -DBINARYEN_BIN=/eos/externals/binaryen/bin -DWASM_ROOT=/opt/wasm -DOPENSSL_ROOT_DIR=/usr/bin/openssl -DOPENSSL_LIBRARIES=/usr/lib/ssl -DBUILD_MONGO_DB_PLUGIN=true . && \
make && \
make install
FROM ubuntu:18.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install openssl ca-certificates curl
COPY --from=builder /usr/local/eosio/bin/ /opt/eosio/bin
COPY --from=builder /eos/contracts /
###########
# Uncomment the COPY function below to copy a directory that contains your config.ini and genesis.json file
# if you want to indicate custom parameters. This command assumes that both congig.ini and genesis.json are
# located in a folder called config within your present working directory.
###########
# COPY /config /
ENV EOSIO_ROOT=/opt/eosio
ENV PATH /opt/eosio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
EXPOSE 8889 8899 9876
CMD ["/bin/bash"]