Skip to content
Snippets Groups Projects
Select Git revision
  • 4b0396529362ea92ab0dd57a65b3f290f9c1ed49
  • dev default protected
  • 734-actualites-menu-en-mobile
  • 728-cartographie-ordre-d-affichage-de-la-liste
  • master protected
  • 723-structures-l-api-ne-prend-pas-en-compte-l-offre-des-mediateurs
  • renovate/major-storybook-monorepo
  • renovate/ngx-toastr-19.x
  • renovate/ngx-matomo-client-8.x
  • renovate/bluehalo-ngx-leaflet-20.x
  • renovate/major-angularmaterial-monorepo
  • renovate/major-angular-monorepo
  • renovate/major-ag-grid-monorepo
  • renovate/major-typescript-eslint-monorepo
  • renovate/npm-11.x
  • renovate/ng-packagr-20.x
  • renovate/chromatic-com-storybook-4.x
  • renovate/major-angular-eslint-monorepo
  • renovate/major-angular-cli-monorepo
  • renovate/leaflet.locatecontrol-0.x
  • renovate/devdependencies-(non-major)
  • v4.1.1
  • v4.1.0
  • v4.0.2
  • v4.0.1
  • v4.0.0
  • v3.4.3
  • v3.4.2
  • v3.4.1
  • v3.4.0
  • v3.3.1
  • v3.3.0
  • v3.2.2
  • v3.2.1
  • v3.2.0
  • v3.1.0-openshift
  • v3.1.0
  • v3.0.2
  • v3.0.1
  • v3.0.0
  • v2.5.0
41 results

README.md

Blame
  • Dockerfile 967 B
    # Stage 0, based on Node.js, to build and compile Angular
    ARG DEPENDENCY_PROXY=
    FROM ${DEPENDENCY_PROXY}node:14.18-slim as build
    
    WORKDIR /app
    
    # Copy the package.json file first in order to cache the modules
    COPY ./package.json .
    COPY ./package-lock.json .
    
    # Install npm dependencies
    RUN npm install --silent
    
    # Copy the project
    COPY angular.json .
    COPY tsconfig.json .
    COPY tsconfig.app.json .
    COPY ngsw-config.json .
    COPY /nginx/nginx.conf .
    COPY /src ./src
    
    ARG conf
    
    # Building the Angular app /dist i18n
    RUN npm run build:prod
    
    # Stage 1, based on Nginx, to have only the compiled app
    FROM ${DEPENDENCY_PROXY}nginx
    
    # copy artifact build from the 'build environment'
    RUN apt-get update
    
    COPY --from=build /app/dist/fr /usr/share/nginx/html
    
    # Add outdated browser page
    ADD ./nginx/outdated.html /usr/share/nginx/html
    
    RUN touch /var/run/nginx.pid
    RUN ls -l /usr/share/nginx/html
    
    
    # expose port 8080
    EXPOSE 8080
    
    # run nginx
    CMD ["nginx", "-g", "daemon off;"]