Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ FROM node:12-alpine as BUILD
WORKDIR /usr/src/app
COPY package*.json ./
COPY tsconfig.json ./
COPY .env ./
RUN cat ./.env | grep NPM_TOKEN | cut -d '=' -f 2- > /tmp/NPM_TOKEN && \
export NPM_TOKEN=$(cat /tmp/NPM_TOKEN) && \
rm /tmp/NPM_TOKEN
RUN echo @yesodot:registry=https://gitlab.com/api/v4/projects/29372887/packages/npm/>> .npmrc
RUN echo //gitlab.com/api/v4/projects/29372887/packages/npm/:_authToken=$(echo $NPM_TOKEN) >> .npmrc
RUN cat .npmrc
RUN npm install
COPY . .
RUN npm run build:prod
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"ngx-avatar": "^3.7.0",
"ngx-matomo": "^0.1.4",
"passport": "^0.4.1",
"passport-shraga": "^1.4.0",
"@yesodot/passport-shraga": "^1.5.2",
"rxjs": "~6.5.4",
"tsc": "^1.20150623.0",
"tslib": "^1.10.0",
Expand All @@ -64,6 +64,6 @@
"protractor": "~5.4.3",
"ts-node": "~8.3.0",
"tslint": "~5.18.0",
"typescript": "^3.7.5"
"typescript": "~3.7.5"
}
}
2 changes: 1 addition & 1 deletion scripts/setenv.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ writeFile(targetPath, environmentFileContent, function (err) {
console.log(err);
}
console.log(`Wrote variables to ${targetPath}`);
}};
});
2 changes: 1 addition & 1 deletion src/passport.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const passport = require('passport');
const {
Strategy
} = require('passport-shraga');
} = require('@yesodot/passport-shraga');

const users = [];

Expand Down