From a971dcdbc2c476c9e646da23a004eb83300f4409 Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Thu, 20 Oct 2022 11:58:12 +1000 Subject: [PATCH] docker-build re --- Dockerfile | 5 +++++ src/app/boards/boards.component.ts | 1 + 2 files changed, 6 insertions(+) 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(); }