You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
FROM node:alpine as builder
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
COPY ng-app/package.json ng-app/package-lock.json ./
|
|
|
|
|
|
|
|
RUN npm install && mkdir /ng-app && cp -r node_modules/ /ng-app
|
|
|
|
|
|
|
|
WORKDIR /ng-app
|
|
|
|
COPY ng-app .
|
|
|
|
|
|
|
|
RUN $(npm bin)/ng build --prod --build-optimizer --output-hashing=none
|
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
|
|
|
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
|
|
|
|
COPY --from=builder /ng-app/dist /quotes/quotes/assets
|
|
|
|
|
|
|
|
RUN addgroup -g 9999 lilia
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|