OSWeekends / batimagen

Un proyecto sobre metadatos del guild de ciberseguridad
GNU General Public License v3.0
12 stars 3 forks source link

Dockerizar la app #25

Closed ElenaMLopez closed 5 years ago

ElenaMLopez commented 5 years ago

Como desarrollador deseo dockerizar la app.

Recursos:

- https://semaphoreci.com/community/tutorials/dockerizing-a-node-js-web-application
UlisesGascon commented 5 years ago
FROM node:11

WORKDIR /app

COPY package*.json ./
RUN npm install

COPY scripts/*.sh ./scripts/
RUN npm run install-dependencies

COPY . .

EXPOSE 8080
CMD [ "npm", "start" ]
{
  "name": "batimagen",
  "version": "0.1.0",
  "description": "Un proyecto sobre metadatos del guild de ciberseguridad",
  "main": "server.js",
  "scripts": {
    "install-dependencies": "chmod +x scripts/*.sh && cd scripts && ./installation.sh",
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "npm run install-dependencies && npm run tokens && node server.js",
    "tokens": "export GOOGLE_APPLICATION_CREDENTIALS='./SECRET_gcloud.json'"
  },
  "author": {
    "name": "Open Source Weekends. Cibersecurity Guild",
    "url": "https://osweekends.com"
  },
  "contributors": [
    {
      "name": "Ulises Gascón",
      "url": "https://github.com/ulisesGascon"
    },
    {
      "name": "Elena Mateos",
      "url": "https://github.com/ElenaMLopez"
    },
    {
      "name": "Carlos Crisóstomo Vals (Kr0n0)",
      "url": "https://github.com/Kr0n0"
    }
  ],
  "license": "GPL-3.0",
  "dependencies": {
    "@google-cloud/vision": "0.19.0",
    "body-parser": "1.18.2",
    "express": "4.16.3",
    "express-fileupload": "0.4.0",
    "image-extensions": "1.1.0",
    "mime-types": "2.1.18",
    "node-exiftool": "2.3.0",
    "node-virustotal": "2.4.2",
    "pug": "2.0.3"
  }
}
Kr0n0 commented 5 years ago

Tres recomendaciones :

node_modules
npm-debug.log
UlisesGascon commented 5 years ago

ya esta completado!