-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflow): docker-buildx workflow (#1070)
* add initial sanity testing container * remove legacy test * use base docker file as root context * adding just the root apps workflow * add document ignore to speed up build time with less context to transfer * remove sanity check first * build all instead * add build-args instead of building multiple images Co-authored-by: Kodemon <[email protected]>
- Loading branch information
Showing
3 changed files
with
62 additions
and
1 deletion.
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,11 @@ | ||
.idea | ||
.husky | ||
.github | ||
docs | ||
examples | ||
|
||
node_modules | ||
|
||
__tests__ | ||
dist | ||
tsconfig.build.tsbuildinfo |
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,28 @@ | ||
FROM node:16-alpine3.13 | ||
|
||
# Add curl to use docker healthcheck capability | ||
RUN apk --no-cache add curl | ||
|
||
WORKDIR /app | ||
|
||
COPY LICENSE ./ | ||
|
||
COPY lerna.json ./ | ||
COPY tsconfig.base.json ./ | ||
COPY tsconfig.build.json ./ | ||
COPY tsconfig.json ./ | ||
|
||
COPY package.json ./ | ||
COPY package-lock.json ./ | ||
|
||
COPY packages ./packages | ||
COPY apps ./apps | ||
|
||
RUN npm ci | ||
RUN npx lerna run build --ignore @defichain-apps/website | ||
|
||
ARG APP | ||
ENV APP ${APP} | ||
RUN ln -s apps/${APP}/dist/apps/${APP}/src ${APP} | ||
|
||
CMD "node" ${APP} |