Skip to main content
Sign in
Snippets Groups Projects
Select Git revision
  • 969f4580696e0f23f2b2f681b6630c1fa8d8a014
  • master default
  • test protected
  • pdp
  • localwebs
  • target-groups
  • seo1
  • fix1
8 results

README.md

Blame
  • Forked from TO / Maják
    Source project has a limited visibility.
    Dockerfile 419 B
    FROM node:14.13-alpine3.12 as build
    
    ARG BUILD_REACT_APP_STYLEGUIDE_URL
    
    ENV REACT_APP_STYLEGUIDE_URL=${BUILD_REACT_APP_STYLEGUIDE_URL}
    
    RUN mkdir -p /home/node/cf2021
    
    WORKDIR /home/node/cf2021
    
    COPY package*.json ./
    
    RUN npm ci
    
    COPY . .
    
    RUN npm run build
    
    # ---
    
    FROM nginx:alpine as production
    
    COPY --from=build /home/node/cf2021/build /usr/share/nginx/html/
    COPY docker/nginx.conf /etc/nginx/conf.d/default.conf