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 25 additions and 5 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

8
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": {
@ -1442,9 +1442,9 @@
} }
}, },
"lodash": { "lodash": {
"version": "4.17.21", "version": "4.17.11",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
}, },
"lodash.get": { "lodash.get": {
"version": "4.4.2", "version": "4.4.2",

View file

@ -18,7 +18,7 @@
"private": true, "private": true,
"dependencies": { "dependencies": {
"handlebars": "4.1.2", "handlebars": "4.1.2",
"lodash": "4.17.21", "lodash": "4.17.11",
"request": "2.88.0", "request": "2.88.0",
"restify": "8.3.2", "restify": "8.3.2",
"restify-cors-middleware": "1.1.1" "restify-cors-middleware": "1.1.1"