Compare commits

..

2 commits

Author SHA1 Message Date
Erick Ruiz de Chavez
a342ad0842 Add missing network config 2024-05-04 15:33:40 -04:00
Erick Ruiz de Chavez
332fec136e Add Docker configuration 2024-05-04 15:11:37 -04:00
5 changed files with 59 additions and 21 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
node_modules
vendor

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM node:14-alpine
WORKDIR /app
COPY . .
RUN npm ci
ENTRYPOINT [ "node", "index.js" ]

13
docker-compose.yml Normal file
View file

@ -0,0 +1,13 @@
services:
node:
build:
context: .
restart: always
ports:
- 8081:8081
networks:
- palmiers
networks:
palmiers:
external: true

58
package-lock.json generated
View file

@ -1,6 +1,6 @@
{ {
"name": "contact", "name": "contact",
"version": "2.0.0", "version": "1.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@ -233,6 +233,12 @@
"delayed-stream": "~1.0.0" "delayed-stream": "~1.0.0"
} }
}, },
"commander": {
"version": "2.20.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
"integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
"optional": true
},
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@ -1055,15 +1061,14 @@
"integrity": "sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ==" "integrity": "sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ=="
}, },
"handlebars": { "handlebars": {
"version": "4.7.7", "version": "4.1.2",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz",
"integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", "integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==",
"requires": { "requires": {
"minimist": "^1.2.5",
"neo-async": "^2.6.0", "neo-async": "^2.6.0",
"optimist": "^0.6.1",
"source-map": "^0.6.1", "source-map": "^0.6.1",
"uglify-js": "^3.1.4", "uglify-js": "^3.1.4"
"wordwrap": "^1.0.0"
} }
}, },
"har-schema": { "har-schema": {
@ -1501,9 +1506,9 @@
} }
}, },
"minimist": { "minimist": {
"version": "1.2.5", "version": "0.0.10",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8="
}, },
"mkdirp": { "mkdirp": {
"version": "0.5.1", "version": "0.5.1",
@ -1572,9 +1577,9 @@
"integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
}, },
"neo-async": { "neo-async": {
"version": "2.6.2", "version": "2.6.0",
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.0.tgz",
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" "integrity": "sha512-MFh0d/Wa7vkKO3Y3LlacqAEeHK0mckVqzDieUKTT+KGxi+zIpeVsFxymkIiRpbpDziHc290Xr9A1O4Om7otoRA=="
}, },
"nice-try": { "nice-try": {
"version": "1.0.5", "version": "1.0.5",
@ -1641,6 +1646,15 @@
"mimic-fn": "^1.0.0" "mimic-fn": "^1.0.0"
} }
}, },
"optimist": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz",
"integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=",
"requires": {
"minimist": "~0.0.1",
"wordwrap": "~0.0.2"
}
},
"optionator": { "optionator": {
"version": "0.8.2", "version": "0.8.2",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz",
@ -2521,10 +2535,14 @@
} }
}, },
"uglify-js": { "uglify-js": {
"version": "3.13.5", "version": "3.5.11",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.5.11.tgz",
"integrity": "sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw==", "integrity": "sha512-izPJg8RsSyqxbdnqX36ExpbH3K7tDBsAU/VfNv89VkMFy3z39zFjunQGsSHOlGlyIfGLGprGeosgQno3bo2/Kg==",
"optional": true "optional": true,
"requires": {
"commander": "~2.20.0",
"source-map": "~0.6.1"
}
}, },
"uniq": { "uniq": {
"version": "1.0.1", "version": "1.0.1",
@ -2603,9 +2621,9 @@
} }
}, },
"wordwrap": { "wordwrap": {
"version": "1.0.0", "version": "0.0.3",
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz",
"integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc="
}, },
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",

View file

@ -17,7 +17,7 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"handlebars": "4.7.7", "handlebars": "4.1.2",
"lodash": "4.17.11", "lodash": "4.17.11",
"request": "2.88.0", "request": "2.88.0",
"restify": "8.3.2", "restify": "8.3.2",