images
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
82b229eb4f
commit
176b4ed2cb
@ -1,13 +1,9 @@
|
|||||||
FROM node:20-alpine AS build-stage
|
FROM node:lts-alpine as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json .
|
COPY . ./
|
||||||
RUN npm install
|
RUN npm install && npm run build
|
||||||
COPY . .
|
|
||||||
RUN npm run build
|
FROM nginx:alpine
|
||||||
|
|
||||||
FROM busybox:1.35
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
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