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
|
||||
COPY package.json .
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
COPY . ./
|
||||
RUN npm install && npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
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"]
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
Loading…
Reference in new issue