forked from ChainSafe/lodestar
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
62c8c24
commit a773f82
Showing
11 changed files
with
54 additions
and
18 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
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,37 @@ | ||
FROM node:10.16-alpine | ||
|
||
WORKDIR /usr/app | ||
|
||
RUN apk add --update git python make g++ linux-headers paxctl gcc && \ | ||
rm -rf /tmp/* /var/cache/apk/* | ||
|
||
COPY lerna.json . | ||
COPY package.json . | ||
COPY packages/lodestar/package.json ./packages/lodestar/package.json | ||
COPY yarn.lock . | ||
|
||
RUN yarn install --frozen-lockfile && node_modules/.bin/lerna bootstrap && yarn cache clean | ||
|
||
COPY . . | ||
|
||
RUN node_modules/.bin/lerna run build | ||
|
||
FROM node:10.16-alpine | ||
|
||
RUN apk add --update git python make g++ linux-headers paxctl gcc && \ | ||
rm -rf /tmp/* /var/cache/apk/* | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=0 /usr/app/packages/lodestar/lib /app/lib | ||
COPY --from=0 /usr/app/packages/lodestar/bin /app/bin | ||
COPY --from=0 /usr/app/packages/lodestar/package.json /app/package.json | ||
COPY --from=0 /usr/app/yarn.lock /app/yarn.lock | ||
|
||
RUN yarn install --frozen-lockfile --production && yarn cache clean && apk del git python g++ gcc make | ||
|
||
RUN chown -R node: . | ||
|
||
USER node | ||
|
||
ENTRYPOINT ["/app/bin/lodestar"] |
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 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
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,3 @@ | ||
export function sleep(ms: number): Promise<void> { | ||
return new Promise(resolve => setTimeout(resolve, ms)); | ||
} |
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