Skip to content

Commit 716f823

Browse files
authored
chore(gateway-contracts): fix vulnerabilities in docker image (#278)
1 parent 7039b64 commit 716f823

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gateway-contracts/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/zama-ai/fhevm-node:latest
1+
FROM ghcr.io/zama-ai/fhevm/gci/nodejs:22.14.0-alpine3.21
22

33
WORKDIR /app
44

@@ -29,4 +29,8 @@ RUN npx hardhat clean && \
2929

3030
USER fhevm:fhevm
3131

32+
# Check that some pre-compiled contracts are present
33+
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
34+
CMD test -d /app/artifacts && find /app/artifacts -type f -name "*.json" | grep -q . || exit 1
35+
3236
ENTRYPOINT ["/bin/bash", "-c"]

0 commit comments

Comments
 (0)