-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
32 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} |