-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
36 lines (25 loc) · 1.45 KB
/
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
29
30
31
32
33
34
35
36
#FROM ubuntu:20.04
FROM ghcr.io/ton-blockchain/ton:v2025.02
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y -q --no-install-recommends ca-certificates curl wget apt-transport-https gpg git unzip
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs
RUN apt-get update --fix-missing
RUN wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null \
&& echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list \
&& apt update && apt install -y -q --no-install-recommends temurin-17-jdk \
&& rm -rf /var/lib/apt/lists/*
ENV GRADLE_VERSION=gradle-8.4
RUN wget --no-verbose https://services.gradle.org/distributions/${GRADLE_VERSION}-bin.zip -O /tmp/${GRADLE_VERSION}-bin.zip \
&& unzip -q -d /opt/gradle /tmp/${GRADLE_VERSION}-bin.zip \
&& rm /tmp/${GRADLE_VERSION}-bin.zip
RUN npm install --global yarn \
&& yarn global add @tact-lang/[email protected]
RUN apt install python3
COPY tsa-cli/build/libs/tsa-cli.jar /home/tsa.jar
COPY resources/tlbc /home/tlbc
COPY resources/libcrypto.so.3 /lib/x86_64-linux-gnu/
COPY resources/entrypoint.py /home/entrypoint.py
COPY resources/block.tlb /home/block.tlb
ENV PATH="/opt/gradle/${GRADLE_VERSION}/bin:${PATH}"
ENTRYPOINT ["python3", "/home/entrypoint.py"]