forked from runtimeverification/mx-semantics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
43 lines (34 loc) · 1.39 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
37
38
39
40
41
42
43
ARG K_COMMIT
FROM runtimeverificationinc/kframework-k:ubuntu-jammy-${K_COMMIT}
RUN apt-get update \
&& apt-get upgrade --yes \
&& apt-get install --yes \
autoconf \
libtool \
cmake \
curl \
wget \
libcrypto++-dev \
libprocps-dev \
libsecp256k1-dev \
libssl-dev \
pandoc \
python3 \
python3-pip \
python3-venv \
wabt
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr python3 - \
&& poetry --version
ARG USER=github-user
ARG GROUP=$USER
ARG USER_ID=1000
ARG GROUP_ID=$USER_ID
RUN groupadd -g $GROUP_ID $GROUP && useradd -m -u $USER_ID -s /bin/sh -g $GROUP $USER
USER $USER:$GROUP
WORKDIR /home/$USER
RUN python3 -m pip install --upgrade pip
RUN wget -O rustup.sh https://sh.rustup.rs && \
chmod +x rustup.sh && \
./rustup.sh --verbose --target wasm32-unknown-unknown -y
ENV PATH="/home/${USER}/.cargo/bin:${PATH}"
RUN cargo install multiversx-sc-meta --version ~0.50 --locked