-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kostas Christopoulos <k.christopoulos@rocketfueldev.com>
- Loading branch information
1 parent
de2cbb2
commit 983ed5c
Showing
5 changed files
with
26 additions
and
49 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 |
---|---|---|
@@ -1,39 +1,18 @@ | ||
FROM node:lts | ||
|
||
# Build Stage 1 | ||
# This build created a staging docker image | ||
# | ||
FROM node:lts AS appbuild | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
RUN yarn build:docker | ||
RUN cd ./common/docker | ||
RUN yarn run build:binaries | ||
|
||
# install core | ||
RUN mkdir -p common/types | ||
RUN mkdir -p common/sdk | ||
RUN mkdir -p common/protocol | ||
|
||
COPY ./package.json ./ | ||
COPY ./tsconfig.json ./ | ||
COPY ./lerna.json ./ | ||
COPY ./nx.json ./ | ||
|
||
COPY ./common/types/package.json ./common/types/ | ||
COPY ./common/types/tsconfig.json ./common/types/ | ||
COPY ./common/types/scripts ./common/types/scripts | ||
COPY ./common/types/src ./common/types/src | ||
|
||
COPY ./common/sdk/package.json ./common/sdk/ | ||
COPY ./common/sdk/tsconfig.json ./common/sdk/ | ||
COPY ./common/sdk/src ./common/sdk/src | ||
|
||
COPY ./common/protocol/package.json ./common/protocol/ | ||
COPY ./common/protocol/tsconfig.json ./common/protocol/ | ||
COPY ./common/protocol/src ./common/protocol/src | ||
# Build Stage 2 | ||
# This build takes the production build from staging build | ||
|
||
RUN mkdir -p integrations/tendermint | ||
|
||
COPY ./integrations/tendermint/package.json ./integrations/tendermint/ | ||
COPY ./integrations/tendermint/tsconfig.json ./integrations/tendermint/ | ||
COPY ./integrations/tendermint/src ./integrations/tendermint/src | ||
|
||
RUN yarn install | ||
RUN yarn setup | ||
|
||
# start core | ||
WORKDIR /usr/src/app/integrations/tendermint | ||
ENTRYPOINT ["yarn", "start"] | ||
FROM node:slim AS runtime | ||
ENV RUNTIME_SERVER_ADDR=runtime:50051 | ||
WORKDIR /usr/src/app | ||
COPY --from=appbuild /usr/src/app/common/docker/out/kyve* ./ | ||
CMD ["./kyve-linux-x64"] |
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
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