-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (33 loc) · 967 Bytes
/
Dockerfile
File metadata and controls
37 lines (33 loc) · 967 Bytes
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
FROM --platform=linux/amd64 ubuntu:24.04
SHELL ["/bin/bash", "-c"]
ENV NVM_DIR=/root/.nvm
ENV NODE_VERSION=24.12.0
ARG AZTEC_VERSION=4.2.0-aztecnr-rc.2
ENV AZTEC_VERSION=$AZTEC_VERSION
ENV NON_INTERACTIVE=1
ENV BIN_PATH=/usr/local/bin
# Install dependencies including newer libstdc++
RUN apt update && apt install -y \
curl \
bash \
git \
tar \
gzip \
libc++-dev \
libstdc++6 \
jq \
python3 \
build-essential \
ca-certificates \
netcat-openbsd
# Install nvm, node and npm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install ${NODE_VERSION} \
&& nvm use ${NODE_VERSION} \
&& nvm alias default ${NODE_VERSION}
# Add node and npm to path
ENV PATH="${NVM_DIR}/versions/node/v${NODE_VERSION}/bin:${PATH}"
RUN npm i -g yarn
RUN curl -fsSL "https://install.aztec.network/${AZTEC_VERSION}" \
| VERSION="${AZTEC_VERSION}" bash -s