Skip to content

Commit 74e3e24

Browse files
committed
Adds dockerisation and readme updates
1 parent 2dd8777 commit 74e3e24

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

dome-ml-osai-ui/.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
.git
4+
.angular
5+
.vscode

dome-ml-osai-ui/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use Node 14 (compatible with Angular 9)
2+
FROM node:14-alpine
3+
4+
# Set working directory
5+
WORKDIR /app
6+
7+
# Copy package files first to leverage cache
8+
COPY package.json package-lock.json* ./
9+
10+
# Install dependencies
11+
RUN npm install
12+
13+
# Copy the rest of the application
14+
COPY . .
15+
16+
# Expose the port the app runs on
17+
EXPOSE 4200
18+
19+
# Start the application using the public host configuration
20+
CMD ["npm", "run", "start-public"]

dome-ml-osai-ui/docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: '3.8'
2+
3+
services:
4+
osai-ui:
5+
build: .
6+
container_name: osai-ui-dev
7+
ports:
8+
- "4200:4200"
9+
volumes:
10+
- .:/app
11+
- /app/node_modules
12+
environment:
13+
- CHOKIDAR_USEPOLLING=true

0 commit comments

Comments
 (0)