-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (34 loc) · 1.62 KB
/
Dockerfile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ethereum/solc:stable AS solc
FROM golang:1.10.3 AS build
MAINTAINER Gregoire Jeanmart version: 0.2
####################################################################################################################
# Ubuntu Packages
RUN apt-get update && apt-get install -y curl unzip make git && apt-get clean && rm -rf /var/lib/apt/lists/*
####################################################################################################################
# Ethereum Solc
COPY --from=solc /usr/bin/solc /usr/bin/solc
####################################################################################################################
# Protobuf
ENV PROTOBUF_VERSION=3.5.1
RUN curl -OL https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip && \
unzip protoc-${PROTOBUF_VERSION}-linux-x86_64.zip -d /usr/local && \
chmod +x /usr/local/bin/protoc
####################################################################################################################
# Installation
ENV LOOM_VERSION=build-330
RUN mkdir /loom && \
cd /loom && \
curl -OL https://private.delegatecall.com/loom/linux/${LOOM_VERSION}/loom && \
chmod +x loom
####################################################################################################################
# Copy scripts and set permissions
COPY ./scripts /scripts
RUN chmod +x /scripts/run.sh
####################################################################################################################
# Run
EXPOSE 46656
EXPOSE 46657
EXPOSE 46658
EXPOSE 9999
WORKDIR /loom
CMD ["/scripts/run.sh"]