-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
28 lines (20 loc) · 884 Bytes
/
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
FROM ubuntu:18.04
RUN apt -y update
RUN apt -y install curl git wget make build-essential libusb-1.0-0-dev bc
RUN apt install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt update && apt install -y python3.8
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
SHELL ["/bin/bash", "-c"]
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
RUN apt -y install nodejs
RUN wget https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-static-linux -O /usr/bin/solc && chmod +x /usr/bin/solc
RUN mkdir -p /usr/app
WORKDIR /usr/app
ENV NODE_OPTIONS=--max-old-space-size=4096
# First add deps
RUN npm install -g yarn
COPY package.json /usr/app/package.json
COPY yarn.lock /usr/app/yarn.lock
COPY ./copy_contracts.sh /usr/app/copy_contracts.sh
RUN yarn install
ADD . /usr/app
CMD while :; do sleep 2073600; done