-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1549 from smartcontractkit/chores/explorer-client…
…-in-yarn-workspace Add explorer to yarn workspaces
- Loading branch information
Showing
15 changed files
with
3,606 additions
and
18,790 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
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ node_modules | |
client/node_modules | ||
client/build | ||
client/.yarn.lock.md5 | ||
*.md5 | ||
*.md5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
FROM node:10.15-alpine as builder | ||
FROM node:10.15 as builder | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
ENV PATH /usr/src/app/node_modules/.bin:$PATH | ||
|
||
COPY package.json yarn.lock ./ | ||
COPY client/package.json client/yarn.lock client/ | ||
RUN yarn autoinstall | ||
|
||
ADD . . | ||
RUN yarn build | ||
|
||
RUN yarn install | ||
RUN cd explorer \ | ||
&& yarn install \ | ||
&& yarn build | ||
|
||
FROM node:10.15-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /usr/src/app/package.json package.json | ||
COPY --from=builder /usr/src/app/yarn.lock yarn.lock | ||
COPY --from=builder /usr/src/app/node_modules node_modules | ||
COPY --from=builder /usr/src/app/explorer/node_modules explorer/node_modules | ||
COPY --from=builder /usr/src/app/explorer/package.json explorer/package.json | ||
COPY --from=builder /usr/src/app/explorer/src explorer/src | ||
COPY --from=builder /usr/src/app/explorer/tsconfig.json explorer/tsconfig.json | ||
COPY --from=builder /usr/src/app/explorer/ormconfig.json explorer/ormconfig.json | ||
COPY --from=builder /usr/src/app/explorer/client/public explorer/client/public | ||
COPY --from=builder /usr/src/app/explorer/client/build explorer/client/build | ||
COPY --from=builder /usr/src/app/styleguide styleguide | ||
|
||
ENV NODE_ENV production | ||
ENTRYPOINT [ "yarn", "prod" ] | ||
ENTRYPOINT [ "yarn", "workspace", "@chainlink/explorer", "run", "prod" ] |
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
Oops, something went wrong.