-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
3 changed files
with
7 additions
and
11 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,15 +1,12 @@ | ||
FROM node:14 as builder | ||
FROM node:16 as builder | ||
|
||
COPY ./ /app | ||
WORKDIR /app | ||
|
||
RUN npm install && npm run package | ||
RUN npm install | ||
|
||
FROM node:14-alpine | ||
FROM node:16-alpine | ||
|
||
# We need to copy entire node modules as some dependencies (@npmcli/run-script) cannot be packaged | ||
# and need to be used by dist as external dependency | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY --from=builder /app/dist ./dist | ||
COPY --from=builder /app ./ | ||
|
||
ENTRYPOINT [ "node", "/dist/index.js" ] | ||
ENTRYPOINT [ "node", "/lib/index.js" ] |
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 |
---|---|---|
|
@@ -83,7 +83,7 @@ jobs: | |
|
||
#In case you do not want to use defaults, you for example want to use different template | ||
- name: Generating HTML from my AsyncAPI document | ||
uses: docker://asyncapi/github-action-for-generator:2.0.0 | ||
uses: docker://asyncapi/github-action-for-generator:2.0.0 #always use latest tag as each is pushed to docker | ||
with: | ||
template: '@asyncapi/[email protected]' #In case of template from npm, because of @ it must be in quotes | ||
filepath: docs/api/my-asyncapi.yml | ||
|
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