-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:20 | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
COPY package.json ./ | ||
|
||
# Install the dependencies | ||
RUN npm install | ||
|
||
COPY .env.example.deployment ./ | ||
COPY lib ./lib/ | ||
COPY tasks ./tasks/ | ||
COPY gateway ./gateway/ | ||
COPY *.sh ./ | ||
COPY *.ts ./ | ||
COPY tsconfig.json ./ | ||
COPY *.sh ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM node:20 | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
COPY package.json ./ | ||
|
||
# Install the dependencies | ||
RUN npm install | ||
|
||
COPY .env.example.deployment ./ | ||
COPY lib ./lib/ | ||
COPY tasks ./tasks/ | ||
COPY gateway ./gateway/ | ||
COPY *.sh ./ | ||
COPY *.ts ./ | ||
COPY tsconfig.json ./ | ||
|
||
RUN cp .env.example.deployment .env | ||
RUN ./precompute-addresses.sh | ||
|
||
RUN npx hardhat clean | ||
|
||
RUN PRIVATE_KEY_FHEVM_DEPLOYER=$(grep PRIVATE_KEY_FHEVM_DEPLOYER .env | cut -d '"' -f 2) | ||
RUN NUM_KMS_SIGNERS=$(grep NUM_KMS_SIGNERS .env | cut -d '"' -f 2) | ||
|
||
RUN npx hardhat compile:specific --contract lib | ||
RUN npx hardhat compile:specific --contract gateway |