Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagobustamante committed Feb 12, 2018
2 parents 3922594 + c0beebc commit 907000a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 38 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Expand Up @@ -6,14 +6,15 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Install dependencies
RUN apk --no-cache add --virtual builds-deps build-base python && \
npm install pm2 -g
# RUN apk --no-cache add --virtual builds-deps build-base python && \
RUN npm install pm2 -g

# Install app dependencies
COPY ./package.json /usr/src/app/

RUN npm install && npm rebuild bcrypt --build-from-source && \
apk --no-cache del builds-deps build-base python
# RUN npm install && npm rebuild bcrypt --build-from-source && \
# apk --no-cache del builds-deps build-base python
RUN npm install

# Install app
COPY README.md tree-gateway.json rest.config /usr/src/app/
Expand Down
40 changes: 10 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "tree-gateway",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "http://treegateway.org",
"description": "The Tree Gateway API Gateway",
"author": "Thiago da Rosa de Bustamante <trbustamante@gmail.com>",
Expand Down Expand Up @@ -54,7 +54,7 @@
"dependencies": {
"agentkeepalive": "^3.3.0",
"argparse": "^1.0.9",
"bcrypt": "^1.0.2",
"bcryptjs": "^2.4.3",
"body-parser": "^1.18.2",
"bson": "^1.0.4",
"chalk": "^2.3.0",
Expand Down Expand Up @@ -106,7 +106,7 @@
},
"devDependencies": {
"@types/argparse": "^1.0.33",
"@types/bcrypt": "^1.0.0",
"@types/bcryptjs": "^2.4.1",
"@types/body-parser": "^1.16.7",
"@types/bson": "^1.0.4",
"@types/chai": "^3.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/service/redis/users.ts
@@ -1,7 +1,7 @@
'use strict';

import { UserData } from '../../config/users';
import * as bcrypt from 'bcrypt';
import * as bcrypt from 'bcryptjs';
import * as jwt from 'jsonwebtoken';
import { Strategy, ExtractJwt } from 'passport-jwt';
import * as auth from 'passport';
Expand Down

0 comments on commit 907000a

Please sign in to comment.