Skip to content

Commit 3ca9605

Browse files
authored
Merge pull request #5 from KnowWhereGraph/root-app-chances
Add local docker-compose and set the root of the app to /
2 parents e953402 + d310f83 commit 3ca9605

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

node-browser/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.0.0-bullseye-slim
1+
FROM node:20.12-bullseye-slim
22

33
RUN mkdir /app
44
WORKDIR /app
@@ -7,4 +7,4 @@ COPY package.json package-lock.json ./
77
RUN npm i
88
RUN npm install -g @angular/cli
99

10-
COPY . .
10+
COPY . .
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
node-explorer:
3+
build: '.'
4+
volumes:
5+
- ./dist/:/app/dist/
6+
entrypoint: ["ng", "build", "--configuration=local"]

node-browser/src/app/app.module.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ import { HttpClientModule } from '@angular/common/http';
2424
imports: [
2525
BrowserModule,
2626
HttpClientModule,
27-
RouterModule.forRoot([{ path: 'browse', component: BrowseComponent }]),
27+
RouterModule.forRoot(
28+
[
29+
{
30+
path: '',
31+
component: BrowseComponent
32+
}
33+
]
34+
),
2835
MatIconModule,
2936
MatTooltipModule,
3037
],

0 commit comments

Comments
 (0)