generated from Phil/vue3template
This commit is contained in:
parent
1fe659f410
commit
fa82c80ccc
1 changed files with 4 additions and 3 deletions
|
@ -1,11 +1,12 @@
|
|||
FROM node:alpine as builder
|
||||
WORKDIR /src
|
||||
FROM node:latest as builder
|
||||
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
COPY dist/* /dist/
|
||||
|
||||
FROM nginx:stable-alpine-slim
|
||||
RUN rm -rf /usr/share/nginx/html
|
||||
RUN mkdir -p /usr/share/nginx/html
|
||||
|
||||
COPY --from=builder /src/dist/* /usr/share/nginx/html/
|
||||
COPY --from=builder /dist/* /usr/share/nginx/html/
|
Loading…
Reference in a new issue