Skip to content

Commit

Permalink
add dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
0xawaz committed Oct 29, 2024
1 parent 772a2a3 commit d4978b4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
17 changes: 17 additions & 0 deletions operations/docker/ci.dockerfile
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 ./
27 changes: 27 additions & 0 deletions operations/docker/dev.dockerfile
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

0 comments on commit d4978b4

Please sign in to comment.