File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Stage 1: Build the Vue.js application
2
+ FROM node:14 as build-stage
3
+ WORKDIR /app
4
+ COPY package*.json ./
5
+ RUN npm install
6
+ COPY . .
7
+ RUN npm run build
8
+
9
+ # Stage 2: Serve the application with Nginx
10
+ FROM nginx:1.19 as production-stage
11
+ COPY --from=build-stage /app/dist /usr/share/nginx/html
12
+ EXPOSE 80
13
+ CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change @@ -96,6 +96,17 @@ npm install
96
96
npm run serve
97
97
```
98
98
99
+ ### Docker build
100
+ ```
101
+ docker build -t copilot-metrics-viewer .
102
+ ```
103
+
104
+ ### Docker run
105
+ ```
106
+ docker run -p 8080:80 copilot-metrics-viewer
107
+ ```
108
+ The application is accessible at http://localhost:8080
109
+
99
110
## License
100
111
101
112
This project is licensed under the terms of the MIT open source license. Please refer to [ MIT] ( ./LICENSE.txt ) for the full terms.
You can’t perform that action at this time.
0 commit comments