generated from Phil/vue3template
13 lines
No EOL
254 B
Docker
13 lines
No EOL
254 B
Docker
FROM node:20 AS builder
|
|
|
|
WORKDIR /app
|
|
COPY ./ /app
|
|
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
FROM nginx:stable-alpine-slim AS production
|
|
RUN rm -rf /usr/share/nginx/html
|
|
RUN mkdir -p /usr/share/nginx/html
|
|
|
|
COPY --from=builder /app/dist/* /usr/share/nginx/html/ |