diff --git a/client/rest/Dockerfile b/client/rest/Dockerfile index 8c04159f..e1a721bb 100644 --- a/client/rest/Dockerfile +++ b/client/rest/Dockerfile @@ -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 diff --git a/client/rest/package.json b/client/rest/package.json index de8309ab..dedac094 100644 --- a/client/rest/package.json +++ b/client/rest/package.json @@ -1,6 +1,6 @@ { "name": "symbol-api-rest", - "version": "0.0.0", + "version": "2.4.2", "description": "Symbol API REST", "main": "src/index.js", "scripts": { @@ -8,34 +8,35 @@ "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" } -} +} \ No newline at end of file