-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from celo-org/jcortejoso/update-dockerfiles
Reduce CVEs: Update dockerfile and dependencies
- Loading branch information
Showing
15 changed files
with
93 additions
and
337 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,11 @@ | ||
--- | ||
'@celo/phone-number-privacy-combiner': patch | ||
'@celo/phone-number-privacy-monitor': patch | ||
'@celo/phone-number-privacy-signer': patch | ||
'@celo/phone-number-privacy-common': patch | ||
'@celo/encrypted-backup': patch | ||
'@celo/identity': patch | ||
'@celo/odis-identifiers': patch | ||
--- | ||
|
||
Update package dependencies to reduce CVEs |
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
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
Empty file.
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 |
---|---|---|
|
@@ -13,9 +13,13 @@ COPY packages/identity packages/identity | |
COPY packages/odis-identifiers packages/odis-identifiers | ||
|
||
##### Main stage | ||
FROM node:18 | ||
FROM node:18-alpine3.19 | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
# Install dependencies and upgrade OS packages | ||
RUN apk add --no-cache python3 git bash && \ | ||
apk upgrade --no-cache | ||
|
||
WORKDIR /celo-phone-number-privacy/ | ||
|
||
# Copy monorepo settings | ||
|
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 |
---|---|---|
|
@@ -12,9 +12,13 @@ COPY packages/identity packages/identity | |
COPY packages/odis-identifiers packages/odis-identifiers | ||
|
||
##### Main stage | ||
FROM node:18 | ||
FROM node:18-alpine3.19 | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
# Upgrade OS packages | ||
RUN apk add --no-cache python3 git bash && \ | ||
apk upgrade --no-cache | ||
|
||
WORKDIR /celo-phone-number-privacy/ | ||
|
||
# Copy monorepo settings | ||
|
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 |
---|---|---|
|
@@ -12,9 +12,13 @@ COPY packages/identity packages/identity | |
COPY packages/odis-identifiers packages/odis-identifiers | ||
|
||
##### Main stage | ||
FROM node:18 | ||
FROM node:18-alpine3.19 | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
# Upgrade OS packages | ||
RUN apk add --no-cache python3 git bash && \ | ||
apk upgrade --no-cache | ||
|
||
WORKDIR /celo-phone-number-privacy/ | ||
|
||
# Copy monorepo settings | ||
|
@@ -28,6 +32,7 @@ ARG PACKAGE_SELECTOR=signer | |
COPY --from=packages celo-phone-number-privacy/apps/${PACKAGE_SELECTOR} apps/${PACKAGE_SELECTOR} | ||
# COMMENT OUT THIS LINE TO USE PUBLISHED DEPENDENCIES | ||
COPY --from=packages celo-phone-number-privacy/packages packages | ||
|
||
# Install dependencies and build. need dev deps too so we can build (tsc) | ||
RUN yarn install --network-timeout 100000 --inline-builds && yarn cache clean | ||
RUN yarn workspaces list | ||
|
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
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
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 |
---|---|---|
|
@@ -67,7 +67,16 @@ | |
"blind-threshold-bls": "npm:@celo/[email protected]", | ||
"ganache": "npm:@celo/[email protected]", | ||
"@types/bn.js": "4.11.6", | ||
"bignumber.js": "9.0.0" | ||
"bignumber.js": "9.0.0", | ||
"crypto-js": "4.2.0", | ||
"flat": "5.0.1", | ||
"protobufjs": "7.2.4", | ||
"@babel/traverse": "7.23.2", | ||
"node-fetch": "2.6.7", | ||
"get-func-name": "2.0.1", | ||
"minimatch": "3.0.5", | ||
"async": "2.6.4", | ||
"browserify-sign": "4.2.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.