-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from eexit/v2
v2.0.0
- Loading branch information
Showing
5 changed files
with
72 additions
and
69 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,7 +1,7 @@ | ||
FROM node:lts-alpine | ||
RUN apk add --no-cache make gcc g++ python | ||
RUN apk add --no-cache yarn | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm install --loglevel=error --prod | ||
EXPOSE 80 | ||
CMD [ "npm", "start" ] | ||
RUN yarn --frozen-lockfile --loglevel=error --prod | ||
EXPOSE 8080 | ||
CMD [ "yarn", "start" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
{ | ||
"name": "mirror-http-server", | ||
"version": "1.1.3", | ||
"description": "A dummy HTTP server that responds whatever you told him to", | ||
"scripts": { | ||
"start": "node server.js | npm run bunyan", | ||
"start:dev": "nodemon server.js | npm run bunyan", | ||
"test": "echo \"No test specified yet\"", | ||
"bunyan": "$(npm bin)/bunyan" | ||
}, | ||
"keywords": [ | ||
"node", | ||
"nodejs", | ||
"server", | ||
"http", | ||
"mirror", | ||
"dumb", | ||
"dump", | ||
"test", | ||
"development" | ||
], | ||
"author": "Joris Berthelot <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"body-parser": "^1.19.0", | ||
"bunyan": "^1.8.13", | ||
"express": "^4.17.1", | ||
"lodash": ">=4.17.20" | ||
}, | ||
"devDependencies": { | ||
"nodemon": "^2.0.0" | ||
}, | ||
"main": "index.js", | ||
"repository": "git@eexit:eexit/mirror-http-server.git" | ||
"name": "mirror-http-server", | ||
"version": "2.0.0", | ||
"description": "A dummy HTTP server that responds whatever you told it to", | ||
"scripts": { | ||
"start": "node server.js | npm run bunyan", | ||
"start:dev": "nodemon server.js | npm run bunyan", | ||
"test": "echo \"No test specified yet\"", | ||
"bunyan": "$(npm bin)/bunyan" | ||
}, | ||
"keywords": [ | ||
"node", | ||
"nodejs", | ||
"server", | ||
"http", | ||
"mirror", | ||
"dumb", | ||
"dump", | ||
"test", | ||
"development" | ||
], | ||
"author": "Joris Berthelot <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"body-parser": "^1.20.0", | ||
"bunyan": "^1.8.15", | ||
"express": "^4.18", | ||
"lodash": ">=4.17.21" | ||
}, | ||
"devDependencies": { | ||
"nodemon": "^2.0.0" | ||
}, | ||
"main": "index.js", | ||
"repository": "git@eexit:eexit/mirror-http-server.git" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ binary-extensions@^2.0.0: | |
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" | ||
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== | ||
|
||
[email protected], body-parser@^1.19.0: | ||
[email protected], body-parser@^1.20.0: | ||
version "1.20.0" | ||
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.0.tgz#3de69bd89011c11573d7bfee6a64f11b6bd27cc5" | ||
integrity sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg== | ||
|
@@ -116,7 +116,7 @@ braces@~3.0.2: | |
dependencies: | ||
fill-range "^7.0.1" | ||
|
||
bunyan@^1.8.13: | ||
bunyan@^1.8.15: | ||
version "1.8.15" | ||
resolved "https://registry.yarnpkg.com/bunyan/-/bunyan-1.8.15.tgz#8ce34ca908a17d0776576ca1b2f6cbd916e93b46" | ||
integrity sha512-0tECWShh6wUysgucJcBAoYegf3JJoZWibxdqhTm7OHPeT42qdjkZ29QCMcKwbgU1kiH+auSIasNRXMLWXafXig== | ||
|
@@ -350,7 +350,7 @@ etag@~1.8.1: | |
resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" | ||
integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= | ||
|
||
express@^4.17.1: | ||
express@^4.18: | ||
version "4.18.1" | ||
resolved "https://registry.yarnpkg.com/express/-/express-4.18.1.tgz#7797de8b9c72c857b9cd0e14a5eea80666267caf" | ||
integrity sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q== | ||
|
@@ -678,7 +678,7 @@ latest-version@^5.1.0: | |
dependencies: | ||
package-json "^6.3.0" | ||
|
||
lodash@>=4.17.20: | ||
lodash@>=4.17.21: | ||
version "4.17.21" | ||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" | ||
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== | ||
|