generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
e7adcb0
commit 36fc774
Showing
1 changed file
with
3 additions
and
5 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,11 +1,9 @@ | ||
FROM node:22-slim | ||
Check notice Code scanning / Trivy No HEALTHCHECK defined Low
Artifact: backups/Dockerfile
Type: dockerfile Vulnerability DS026 Severity: LOW Message: Add HEALTHCHECK instruction in your Dockerfile Link: DS026 |
||
ENV NPM_CONFIG_UPDATE_NOTIFIER=false | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
COPY package*.json backup.js ./ | ||
RUN npm ci | ||
|
||
COPY . . | ||
|
||
USER 1001 | ||
USER node | ||
CMD ["npm", "run", "backup"] |