-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): more dependencies and docker
Signed-off-by: MatthewBWhite <whitemat@uk.ibm.com>
- Loading branch information
Showing
6 changed files
with
1,717 additions
and
1,159 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,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a bug report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
**To Reproduce** | ||
<!-- List the steps that can be used to demonstrate the bug. Include the name of the service and operation that you're trying to invoke, if applicable. Be sure to describe any relevant info regarding parameter values used with your API invocation. --> | ||
|
||
**Expected behavior** | ||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
**Screenshots** | ||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
**Must gather (please complete the following information):** | ||
- SDK Version [e.g. 1.2.1] | ||
- Node.js Version [e.g. Node.js 18] | ||
- Name of service that you're trying to use (if applicable) | ||
- Name of operation that you're trying to invoke (if applicable) | ||
|
||
**Additional context** | ||
<!-- Add any other context about the problem here. | ||
Were you able to avoid the problem by changing your application code slightly? --> |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> | ||
|
||
**Describe the solution you'd like** | ||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
**Describe alternatives you've considered** | ||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
**Additional context** | ||
<!-- Add any other context or screenshots about the feature request here. --> |
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 |
---|---|---|
@@ -1,5 +1,28 @@ | ||
FROM node:12.16.3-alpine | ||
WORKDIR /src | ||
COPY . /src | ||
RUN npm ci --prod | ||
ENTRYPOINT ["node", "lint.js"] | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
FROM node:18 AS builder | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Copy node.js source and build, changing owner as well | ||
COPY --chown=node:node . /usr/src/app | ||
RUN npm ci && npm run build && npm shrinkwrap | ||
|
||
FROM node:16 AS production | ||
|
||
# Setup tini to work better handle signals | ||
ENV TINI_VERSION v0.19.0 | ||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini | ||
RUN chmod +x /tini | ||
|
||
WORKDIR /usr/src/app | ||
COPY --chown=node:node --from=builder /usr/src/app/lib ./lib | ||
COPY --chown=node:node --from=builder /usr/src/app/package.json ./ | ||
COPY --chown=node:node --from=builder /usr/src/app/npm-shrinkwrap.json ./ | ||
|
||
USER node | ||
ENV NODE_ENV=production | ||
WORKDIR /usr/src/app | ||
# ENTRYPOINT [ "/tini", "--", "node","lib/main.js" ] | ||
ENTRYPOINT [ "node","lib/main.js" ] |
Oops, something went wrong.