Skip to content

Commit

Permalink
Merge pull request #157 from EYBlockchain/swati/updateImages
Browse files Browse the repository at this point in the history
chore: update the dependencies
  • Loading branch information
SwatiEY authored Sep 5, 2024
2 parents 9de8056 + 38718f6 commit d3adadb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/release-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Release updated
on:
push:
branches:
- swati/updates
- swati/updateImages

jobs:
release:
BuildDockerImage:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -41,3 +41,21 @@ jobs:
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
push: true
# ScanImage:
# name: Aquasec scan
# runs-on: ubuntu-latest
# needs: [BuildDockerImage]
# steps:
# - name: Trigger Aquascan Image Scan
# uses: convictional/[email protected]
# with:
# owner: ${{ github.repository_owner }}
# repo: saas-platform-iac-automation
# github_token: ${{ secrets.GPR_TOKEN_WITH_WORKFLOW_RIGHT }}
# workflow_file_name: image-scan-workflow.yml
# ref: master
# wait_interval: 11
# propagate_failure: true
# trigger_workflow: true
# wait_workflow: true
# client_payload: '{"image": ""${{ secrets.GHCR_REGISTRY }}/eyblockchain/timber-updated:latest"}'
10 changes: 6 additions & 4 deletions merkle-tree/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
FROM node:iron-slim
FROM node:lts-alpine

ENV USERNAME="app"

RUN addgroup --gid 10001 $USERNAME && \
adduser --gid 10001 --uid 10001 --home /app $USERNAME
RUN addgroup -S $USERNAME && \
adduser -S $USERNAME -G $USERNAME --home /app $USERNAME

WORKDIR /app

COPY ./package.json ./package-lock.json ./
RUN npm install
COPY ./src ./src
COPY ./test ./test
COPY ./.babelrc ./
RUN npm install

USER $USERNAME:$USERNAME

EXPOSE 80

CMD npm start
4 changes: 2 additions & 2 deletions merkle-tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"Michael Connor <[email protected]>"
],
"dependencies": {
"axios": "^1.6.0",
"axios": "1.7.4",
"big-integer": "^1.6.48",
"body-parser": "^1.19.0",
"config": "^3.3.1",
"cors": "^2.8.5",
"express": "^4.17.3",
"express": "^4.19.2",
"express-promise-router": "^3.0.3",
"fs-extra": "^8.1.0",
"hex-to-binary": "^1.0.1",
Expand Down

0 comments on commit d3adadb

Please sign in to comment.