-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools(cmd-api-server): address CVE: CVE-2022-25881
Primary Changes: Updated the https-cache-semantics to latest version inside the cmd-api-server package Fixes: hyperledger#2862 Signed-off-by: zondervancalvez <[email protected]>
- Loading branch information
1 parent
6994e5b
commit 3d44bec
Showing
3 changed files
with
19 additions
and
10 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 |
---|---|---|
|
@@ -50,17 +50,15 @@ ENV NODE_VERSION 20.9.0 | |
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules | ||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH | ||
|
||
# Install nvm with node and npm | ||
# Install nvm with node and yarn | ||
RUN mkdir -p ${NVM_DIR} | ||
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \ | ||
&& source $NVM_DIR/nvm.sh \ | ||
&& nvm install $NODE_VERSION \ | ||
&& nvm alias default $NODE_VERSION \ | ||
&& nvm use default \ | ||
&& npm install -g [email protected] | ||
|
||
ARG NPM_PKG_VERSION=latest | ||
RUN npm install @hyperledger/cactus-cmd-api-server@${NPM_PKG_VERSION} | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | ||
RUN source ~/.bashrc && \ | ||
nvm install 20.11.1 && \ | ||
npm install --location=global yarn && \ | ||
yarn config set nodeLinker node-modules && \ | ||
yarn set version 4.1.0 && \ | ||
yarn add @hyperledger/[email protected] | ||
|
||
COPY ./packages/cactus-cmd-api-server/docker-entrypoint.sh /usr/local/bin/ | ||
HEALTHCHECK --interval=5s --timeout=5s --start-period=1s --retries=30 CMD /healthcheck.sh | ||
|
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