Skip to content

Commit

Permalink
downgrade mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
monakaJP committed Dec 5, 2022
1 parent 165d39b commit 9166ae0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 32 deletions.
22 changes: 5 additions & 17 deletions client/rest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
FROM ubuntu:20.04

RUN apt-get update && apt-get install -y curl \
&& curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get install -y nodejs \
&& apt-get install -y build-essential \
&& node --version \
&& npm --version \
&& npm install -g yarn
FROM node:16

WORKDIR /app
COPY . /app/catapult-rest
RUN cd catapult-rest && npm i

ARG UID=1000
RUN useradd -m -u ${UID} docker

# 作成したユーザーに切り替える
USER ${UID}
COPY . .
RUN npm uninstall . && rm -rf node_modules && npm install
RUN node --version && npm --version
EXPOSE 3000
31 changes: 16 additions & 15 deletions client/rest/package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
{
"name": "symbol-api-rest",
"version": "0.0.0",
"version": "2.4.2",
"description": "Symbol API REST",
"main": "src/index.js",
"scripts": {
"start": "node src/index.js",
"lint": "eslint .",
"test": "mocha --full-trace --recursive ./test",
"lint:jenkins": "eslint -o lint.client.rest.xml -f junit . || exit 0",
"test:jenkins": "nyc --require mocha --reporter=lcov npm run test"
"test:jenkins": "nyc --require mocha --reporter=lcov npm run test",
"version": "echo $npm_package_version"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"axios": "^1.1.3",
"chai": "^4.3.6",
"eslint": "^8.12.0",
"eslint": "^8.25.0",
"eslint-config-airbnb": "^19.0.4",
"hippie": "^0.6.1",
"minimist": "^1.2.6",
"mocha": "^9.2.2",
"mocha-jenkins-reporter": "^0.4.7",
"minimist": "^1.2.7",
"mocha": "^10.1.0",
"mocha-jenkins-reporter": "^0.4.8",
"nyc": "^15.1.0",
"sinon": "^13.0.1"
"sinon": "^14.0.1",
"tmp": "^0.2.1"
},
"dependencies": {
"file-type": "^16.5.3",
"ini": "^2.0.0",
"js-sha3": "^0.8.0",
"@noble/hashes": "^1.1.3",
"ini": "^3.0.1",
"long": "^5.2.0",
"mongodb": "^4.10.0",
"mongodb": "^3.7.3",
"restify": "^8.6.1",
"restify-errors": "^8.0.2",
"ripemd160": "^2.0.2",
"sshpk": "^1.17.0",
"winston": "^3.6.0",
"ws": "^8.5.0",
"winston": "^3.8.2",
"ws": "^8.9.0",
"zeromq": "^5.2.8"
}
}
}

0 comments on commit 9166ae0

Please sign in to comment.