mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 16:03:12 +00:00
Add Docker configs for dashboard
This commit is contained in:
parent
a804b4118a
commit
9935b5473f
3 changed files with 32 additions and 0 deletions
12
dashboard/Dockerfile
Normal file
12
dashboard/Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM --platform=$BUILDPLATFORM node:20.16.0-bullseye-slim as builder
|
||||
|
||||
RUN mkdir /project
|
||||
WORKDIR /project
|
||||
|
||||
RUN npm install -g @angular/cli@18.1.0
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
CMD ["ng", "serve", "--host", "0.0.0.0"]
|
|
@ -17,6 +17,16 @@ services:
|
|||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
dashboard:
|
||||
build: ./dashboard
|
||||
container_name: lumi-dashboard
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:4200
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: mariadb
|
||||
|
|
|
@ -13,6 +13,16 @@ services:
|
|||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
dashboard:
|
||||
build: ./dashboard
|
||||
container_name: lumi-dashboard
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:4200
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: mariadb
|
||||
|
|
Loading…
Reference in a new issue