forked from NethermindEth/zksync-remix-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileRocket
53 lines (39 loc) · 1.28 KB
/
DockerfileRocket
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
52
53
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN=true
ENV HARDHAT_ENV_DOCKER_IMAGE="hardhat_env"
ENV METRICS_PORT=8001
RUN apt-get clean
RUN apt-get update
RUN apt-get install -y curl \
git \
cmake \
build-essential \
gcc \
apt-transport-https \
software-properties-common \
wget \
npm
RUN wget https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux -O /usr/local/bin/solc
RUN chmod +x /usr/local/bin/solc
RUN solc --version
# Installing grafana agent
RUN mkdir -p /etc/apt/keyrings/
RUN wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | tee /etc/apt/keyrings/grafana.gpg > /dev/null
RUN echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | tee -a /etc/apt/sources.list.d/grafana.list
RUN apt-get update
RUN apt-get install grafana-agent-flow
RUN npm install -g yarn && npm install -g n
RUN n lts
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN whoami
WORKDIR /opt/app
COPY . /opt/app
WORKDIR /opt/app/api/hardhat_env
RUN yarn install
WORKDIR /opt/app/api
RUN cargo build --release
RUN chmod +x ./docker_run.sh
EXPOSE 8000
ENTRYPOINT [ "./docker_run.sh" ]