Skip to content

Commit

Permalink
Pin package versions in Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
  • Loading branch information
nguyer committed Feb 29, 2024
1 parent 82cc6d4 commit 700d971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ADD --chown=node:node . .
RUN npm run build

FROM node:20-alpine3.17 as solidity-build
RUN apk add python3 alpine-sdk
RUN apk add python3=3.10.13-r0 alpine-sdk=1.0-r1
USER node
WORKDIR /home/node
ADD --chown=node:node ./samples/solidity/package*.json ./
Expand All @@ -16,7 +16,7 @@ ADD --chown=node:node ./samples/solidity .
RUN npx hardhat compile

FROM node:20-alpine3.17
RUN apk add curl jq
RUN apk add curl=8.5.0-r0 jq=1.6-r2
RUN mkdir -p /app/contracts/source \
&& chgrp -R 0 /app/ \
&& chmod -R g+rwX /app/ \
Expand Down

0 comments on commit 700d971

Please sign in to comment.