images
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c5cb58678f
commit
82b229eb4f
@ -1,10 +1,13 @@
|
||||
FROM node:lts-alpine as builder
|
||||
|
||||
FROM node:20-alpine AS build-stage
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
COPY package.json .
|
||||
RUN npm install
|
||||
RUN vite build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
FROM busybox:1.35
|
||||
RUN adduser -D static
|
||||
USER static
|
||||
WORKDIR /home/static
|
||||
COPY --from=build-stage /app/dist .
|
||||
CMD ["busybox", "httpd", "-f", "-v", "-p", "8080"]
|
Loading…
Reference in new issue