-
Notifications
You must be signed in to change notification settings - Fork 550
/
Copy pathDockerfile-itn-orchestrator
39 lines (29 loc) · 1.09 KB
/
Dockerfile-itn-orchestrator
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
ARG image=debian:bullseye-slim
FROM ${image}
ARG deb_version
ARG deb_release=unstable
ARG deb_codename=bullseye
ARG deb_repo="http://packages.o1test.net"
ARG network=mainnet
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update --quiet --yes \
&& apt-get upgrade --quiet --yes \
&& apt-get install --quiet --yes --no-install-recommends \
apt-transport-https \
ca-certificates \
wget \
build-essential
WORKDIR /root
# Snapp test transaction package
RUN echo "Building image with version $deb_version from repo $deb_release $deb_codename for network $network" \
&& echo "deb [trusted=yes] ${deb_repo} $deb_codename $deb_release" > /etc/apt/sources.list.d/o1.list \
&& apt-get update --quiet --yes \
&& apt-get install --quiet --yes --allow-downgrades "mina-$network=$deb_version" \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://golang.org/dl/go1.20.linux-amd64.tar.gz
RUN tar -C /usr/local -xf go1.20.linux-amd64.tar.gz
ENV PATH="${PATH}:/usr/local/go/bin"
COPY . /root/app/
WORKDIR /root/app
RUN make clean orchestrator generator
ENTRYPOINT ["sleep","infinity"]