-
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.
Add Docker container for fully bootstrapped dev setup
This grabs all the necessary dependencies and should be setup for us to run whatever CI commands, or general dev commands we might want.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
**/*/node_modules | ||
|
||
target | ||
# No reason to copy over git repo | ||
.git |
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,30 @@ | ||
FROM node:lts | ||
|
||
WORKDIR /app | ||
|
||
#Copy top level package dependency file | ||
COPY lerna.json ./ | ||
COPY package.json ./ | ||
COPY package-lock.json ./ | ||
|
||
COPY packages packages | ||
|
||
#Remove all files that are not package.json files. This is a hack to allow for dependency installation to be cached | ||
RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 10 -print | xargs rm -rf | ||
|
||
# Second Build Phase that makes use of only package.json files from above | ||
FROM node:lts | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install -g lerna | ||
|
||
COPY --from=0 /app . | ||
|
||
# Install all deps for all packages | ||
RUN lerna bootstrap | ||
|
||
# Copy over all the source code | ||
COPY . . | ||
|
||
ENTRYPOINT ["lerna"] |
617ceb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rly-ts – ./packages/examples/react/test-app
rly-ts-git-main-rly-network.vercel.app
rly-ts-rly-network.vercel.app