fix images
continuous-integration/drone/push Build is passing Details

main
Lucas DELANIER 11 months ago
parent 8fe653f1a6
commit b988aa1099

@ -1,9 +1,12 @@
FROM node:lts-alpine as builder # build stage
FROM node:lts-hydrogen AS build-stage
WORKDIR /app WORKDIR /app
COPY . ./ COPY package*.json ./
RUN npm install && npm run build RUN npm install
COPY . .
FROM nginx:alpine RUN npm run build
COPY --from=builder /app/dist /usr/share/nginx/html FROM nginx:stable-alpine AS production-stage
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build-stage /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]

Loading…
Cancel
Save