-
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 <[email protected]>
- Loading branch information
1 parent
de2cbb2
commit 589e250
Showing
2 changed files
with
16 additions
and
37 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,17 @@ | ||
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 docker-setup | ||
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 | ||
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