generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(reporter,relayer,executor): dockerfile and docker-compose.ym…
…l for better monorepo support
- Loading branch information
1 parent
a90cde0
commit 681a16f
Showing
6 changed files
with
63 additions
and
76 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,23 @@ | ||
FROM node:18-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Copy root package.json and yarn.lock for dependency resolution | ||
COPY ../../package.json ../../yarn.lock ./ | ||
|
||
# Copy both executor and common package folders | ||
COPY ./packages/common ./packages/common | ||
COPY ./packages/executor ./packages/executor | ||
|
||
|
||
# Install dependencies at root level | ||
RUN yarn install | ||
|
||
# Compile both common and executor packages | ||
WORKDIR /usr/src/app/packages/common | ||
RUN yarn compile | ||
|
||
WORKDIR /usr/src/app/packages/executor | ||
RUN yarn compile | ||
|
||
CMD ["yarn", "start"] |
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,23 @@ | ||
FROM node:18-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Copy root package.json and yarn.lock for dependency resolution | ||
COPY ../../package.json ../../yarn.lock ./ | ||
|
||
# Copy both executor and common package folders | ||
COPY ./packages/common ./packages/common | ||
COPY ./packages/relayer ./packages/relayer | ||
|
||
|
||
# Install dependencies at root level | ||
RUN yarn install | ||
|
||
# Compile both common and executor packages | ||
WORKDIR /usr/src/app/packages/common | ||
RUN yarn compile | ||
|
||
WORKDIR /usr/src/app/packages/relayer | ||
RUN yarn compile | ||
|
||
CMD ["yarn", "start"] |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM node:18-alpine | |
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package.json yarn.lock .env ./ | ||
COPY package.json .env ./ | ||
|
||
RUN corepack enable && \ | ||
corepack prepare --activate [email protected] && \ | ||
|