Added DockerFile

This commit is contained in:
Douglas Barone 2023-06-21 14:51:37 -04:00
parent 3c8b97871b
commit 90c03d919d
3 changed files with 15 additions and 1 deletions

13
Dockerfile Normal file
View 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" ]

View File

@ -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 {

View File

@ -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: []
} }