Skip to content
Snippets Groups Projects
Select Git revision
  • b68ab8ba7fc6c9b27751ca6ad3b44c7d2a8ef1df
  • main default protected
2 results

Dockerfile-Production

Blame
  • user avatar
    Helmut Hutzler authored
    b68ab8ba
    History
    Dockerfile-Production 530 B
    FROM node:16.10 as builder
    ADD package.json package-lock.json /build/
    WORKDIR /build
    RUN npm install
    ADD . /build
    #RUN npm run ng build -- --base-href=/
    RUN npm run ng build -- --configuration production --progress false --aot --base-href=/
    #RUN npm run ng build --progress false --base-href=/
    RUN ls -Rl dist
    RUN pwd
    
    FROM nginx:1.17.6-alpine
    
    COPY --from=builder /build/dist/angular-oidc-authorization-sample /usr/share/nginx/html
    RUN ls -l usr/share/nginx/html
    COPY default.conf /etc/nginx/conf.d/
    RUN ls -l /etc/nginx/conf.d/