fix images
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6c6ab5335b
commit
7be6856e25
@ -1,19 +1,12 @@
|
|||||||
|
# build stage
|
||||||
# stage1 as builder
|
FROM node:lts-hydrogen AS build-stage
|
||||||
FROM node:16-alpine as builder
|
WORKDIR /app
|
||||||
# Copy the package.json and install dependencies
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
# Copy rest of the files
|
|
||||||
COPY . .
|
COPY . .
|
||||||
# Build the project
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM nginx:stable-alpine AS production-stage
|
||||||
FROM nginx:alpine as production-build
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
## Remove default nginx index page
|
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
|
||||||
# Copy from the stage 1
|
|
||||||
COPY --from=builder /dist /usr/share/nginx/html/nested-app
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Reference in new issue