2024-04-11 23:23:08 +00: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-11 23:49:27 +00:00
|
|
|
RUN git clone $REPO && \
|
2024-04-11 23:23:08 +00:00
|
|
|
cd maticgasstation && \
|
2024-04-11 23:49:27 +00:00
|
|
|
git checkout $VERSION && \
|
2024-04-11 23:23:08 +00:00
|
|
|
npm i
|
|
|
|
|
2024-04-11 23:49:27 +00:00
|
|
|
WORKDIR /root/maticgasstation
|
|
|
|
|
2024-04-11 23:23:08 +00:00
|
|
|
EXPOSE 7000
|
|
|
|
|
|
|
|
ENTRYPOINT ["node", "src/index.js"]
|