polygon-gas-price-oracle/maticgasstation.Dockerfile

26 lines
603 B
Docker
Raw Normal View History

2024-04-12 02:23:08 +03:00
FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y curl nano git wget nmap net-tools build-essential software-properties-common \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /root
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs
ENV REPO=https://github.com/maticnetwork/maticgasstation
ENV VERSION=ca8c49c24de98dedac7196b1b07068feeebe856a
2024-04-12 02:49:27 +03:00
RUN git clone $REPO && \
2024-04-12 02:23:08 +03:00
cd maticgasstation && \
2024-04-12 02:49:27 +03:00
git checkout $VERSION && \
2024-04-12 02:23:08 +03:00
npm i
2024-04-12 02:49:27 +03:00
WORKDIR /root/maticgasstation
2024-04-12 02:23:08 +03:00
EXPOSE 7000
ENTRYPOINT ["node", "src/index.js"]