mirror of
https://github.com/notherealmarco/vue-quic-test.git
synced 2025-05-05 04:28:39 +02:00
17 lines
321 B
Docker
17 lines
321 B
Docker
FROM node:lts as builder
|
|
|
|
### Copy Vue.js code
|
|
WORKDIR /app
|
|
COPY . webui
|
|
|
|
### Build Vue.js into plain HTML/CSS/JS
|
|
WORKDIR /app/webui
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
|
|
### Create final container
|
|
FROM nginx:stable
|
|
|
|
### Copy the (built) app from the builder image
|
|
COPY --from=builder /app/webui/dist /usr/share/nginx/html
|