Dockerfile
578 Bytes
FROM node:8
WORKDIR /usr/src/app/server
COPY package*.json ./
RUN npm install
COPY . .
RUN echo "NODE_TLS_REJECT_UNAUTHORIZED=0\n"\
"COUCHDB_URL=http://couch_server:5984\n"\
"DB_VALORACIONES=valoraciones\n"\
"DB_UBICACIONES=ubicaciones\n"\
"DB_REPORTES=reporte\n"\
"DB_NONCES=nonces\n"\
"DB_TOKENS=tokens\n"\
"TOKEN_INTERVAL=840000\n"\
"AUTH_TOKEN=0496164f-8de1-449c-9ce9-af0e0a6ce9fe\n"\
"CLIENT_SECRET=a66a1a98eb7059a5c3b446183e214cc2661326c2994b811cb06dd9d3d873a9e9\n"\
"SENATICS_URL=https://devaip.senatics.gov.py:443/portal-core/rest/api\n" > .env
CMD ["npm", "start"]