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=4438c469-341d-4887-b2b3-e5c77c09e905\n"\
"CLIENT_SECRET=56ff88078b9cbb415486aa69d39419cded8baf7f7d54e11f72b68fe490757acb\n"\
"SENATICS_URL=https://devaip.senatics.gov.py:443/portal-core/rest/api\n" > .env

CMD ["npm", "start"]