Added DockerFile
This commit is contained in:
parent
3c8b97871b
commit
90c03d919d
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM node:20
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD [ "npm", "start" ]
|
|
@ -14,9 +14,9 @@ type LdapUser = {
|
||||||
username: string
|
username: string
|
||||||
mail: string | null
|
mail: string | null
|
||||||
displayName: string
|
displayName: string
|
||||||
|
campus: string
|
||||||
thumbnailPhoto: string | null
|
thumbnailPhoto: string | null
|
||||||
groups?: string[]
|
groups?: string[]
|
||||||
campus?: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class LdapService extends Client implements LdapClientInterface {
|
export class LdapService extends Client implements LdapClientInterface {
|
||||||
|
|
|
@ -19,6 +19,7 @@ export class UserService {
|
||||||
displayName: ldapUser.displayName,
|
displayName: ldapUser.displayName,
|
||||||
mail: ldapUser.mail,
|
mail: ldapUser.mail,
|
||||||
thumbnailPhoto: ldapUser.thumbnailPhoto,
|
thumbnailPhoto: ldapUser.thumbnailPhoto,
|
||||||
|
campus: ldapUser.campus,
|
||||||
roles: []
|
roles: []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user