Skip to content

Commit

Permalink
Hotfix for docker image to support async logging (#202)
Browse files Browse the repository at this point in the history
- Added async logging support to DockerFile
- Updated dependencies for Jest
- Fixed vulnerability issues
- Bumped version to v10.1.1
  • Loading branch information
mdebarros authored May 6, 2020
1 parent 52a60f7 commit b96cd31
Show file tree
Hide file tree
Showing 4 changed files with 792 additions and 786 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ FROM node:12.16.1-alpine

WORKDIR /opt/quoting-service

# Create empty log file & link stdout to the application log file
RUN mkdir ./logs && touch ./logs/combined.log
# Links combined to stdout
RUN ln -sf /dev/stdout ./logs/combined.log

# Create a non-root user: ml-user
RUN adduser -D ml-user
USER ml-user
Expand All @@ -28,4 +33,4 @@ COPY --chown=ml-user --from=builder /opt/quoting-service .
RUN npm prune --production

EXPOSE 3002
CMD ["npm", "run", "start"]
CMD ["npm", "run", "start"]
10 changes: 10 additions & 0 deletions audit-resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
"decision": "ignore",
"madeAt": 1588247839507,
"expiresAt": 1588852630163
},
"1500|npm-audit-resolver>yargs-unparser>yargs>yargs-parser": {
"decision": "ignore",
"madeAt": 1588760499425,
"expiresAt": 1589365290340
},
"1500|npm-audit-resolver>audit-resolve-core>yargs-parser": {
"decision": "ignore",
"madeAt": 1588760504403,
"expiresAt": 1589365290340
}
},
"rules": {},
Expand Down
Loading

0 comments on commit b96cd31

Please sign in to comment.