diff --git a/Dockerfile b/Dockerfile index c258818..1754ce1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,11 @@ RUN mkdir -p /app WORKDIR /app COPY package.json /app RUN npm install + + +FROM build-step + +WORKDIR /app COPY . /app RUN npm run build --prod diff --git a/src/app/boards/boards.component.ts b/src/app/boards/boards.component.ts index 48741e1..30a4b29 100644 --- a/src/app/boards/boards.component.ts +++ b/src/app/boards/boards.component.ts @@ -26,6 +26,7 @@ export class BoardsComponent implements OnInit { } ngOnInit(): void { + this.listPosts(); }