generated from Phil/vue3template
This commit is contained in:
parent
b9981813d5
commit
309e7010c3
1 changed files with 4 additions and 3 deletions
|
@ -1,12 +1,13 @@
|
||||||
FROM node:20 AS builder
|
FROM node:20 AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY ./ /app
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
COPY dist/* /dist/
|
|
||||||
|
|
||||||
FROM nginx:stable-alpine-slim AS production
|
FROM nginx:stable-alpine-slim AS production
|
||||||
RUN rm -rf /usr/share/nginx/html
|
RUN rm -rf /usr/share/nginx/html
|
||||||
RUN mkdir -p /usr/share/nginx/html
|
RUN mkdir -p /usr/share/nginx/html
|
||||||
|
|
||||||
COPY --from=builder /dist/* /usr/share/nginx/html/
|
COPY --from=builder /app/dist/* /usr/share/nginx/html/
|
Loading…
Reference in a new issue