Commit f395dce4 authored by Ayoub MAGHOUZ's avatar Ayoub MAGHOUZ
Browse files

adding Dockerfile + updating backend uri

parent 280546c5
.git
.firebase
.editorconfig
/node_modules
/e2e
/docs
.gitignore
*.zip
*.md
### STAGE 1: Build ###
FROM node:12.7-alpine AS build
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build:prod
RUN rm -R /usr/src/app/node_modules
### STAGE 2: Run ###
FROM nginx:1.17.1-alpine
RUN mkdir /usr/share/nginx/html/cops-ui
COPY --from=build /usr/src/app/dist/* /usr/share/nginx/html/cops-ui/
......@@ -6,6 +6,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:prod": "ng build --prod --base-href=/cops-ui/",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
......
......@@ -72,7 +72,7 @@ import {deleteTicketsDialog} from './monitored_items/monitored-items-dialogs/del
return {
cache: new InMemoryCache(),
link: httpLink.create({
uri: 'http://localhost/graphql',
uri: 'http://visi-cersat-web1.ifremer.fr/cops-ws/graphql',
}),
};
},
......
......@@ -36,7 +36,7 @@ export class Monitored_events_listComponent implements OnInit {
public selectedEventMessage: any;
public logContent: any;
selectedEvent:MonitoredEvent
private loadingLogContent: boolean;
loadingLogContent: boolean;
constructor(private route: ActivatedRoute, public monitoredeventsService: Monitored_eventsService) {
this.monitored_eventsService = monitoredeventsService;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment