-
Notifications
You must be signed in to change notification settings - Fork 302
/
Copy pathDockerfile.aztec
24 lines (21 loc) · 1.05 KB
/
Dockerfile.aztec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM aztecprotocol/aztec-base
ENV BB_WORKING_DIRECTORY=/usr/src/bb
ENV BB_BINARY_PATH=/usr/src/barretenberg/cpp/build/bin/bb
ENV ACVM_WORKING_DIRECTORY=/usr/src/acvm
ENV ACVM_BINARY_PATH=/usr/src/noir/noir-repo/target/release/acvm
RUN mkdir -p $BB_WORKING_DIRECTORY $ACVM_WORKING_DIRECTORY /usr/src/yarn-project/world-state/build
COPY /usr/src /usr/src
# Set the version returned in getNodeVersion to current version
# aztec-base assumed to have jq installed
ARG VERSION=0.1.0
RUN if [ -n "$VERSION" ]; then \
echo "Setting version to $VERSION"; \
cat /usr/src/yarn-project/aztec-node/package.json | jq --arg version "$VERSION" '.version = $version' > /usr/src/yarn-project/aztec-node/package.tmp.json; \
mv /usr/src/yarn-project/aztec-node/package.tmp.json /usr/src/yarn-project/aztec-node/package.json; \
fi
ENTRYPOINT ["node", "--no-warnings", "/usr/src/yarn-project/aztec/dest/bin/index.js"]
ARG PORT=8080
ENV PORT=$PORT
HEALTHCHECK --interval=10s --timeout=10s --retries=6 --start-period=120s \
CMD curl -fsS http://127.0.0.1:$PORT/status
EXPOSE 8080