Skip to content
Snippets Groups Projects
Select Git revision
  • 7606e2af820c60ad0caa5e3bf64ef2915a0d1a40
  • master default
2 results

Dockerfile

Blame
  • Dockerfile 332 B
    FROM node:12.9.0-alpine as builder
    ARG BASE_HREF
    RUN mkdir -p /app
    WORKDIR /app
    COPY package.json /app
    
     
    
    RUN npm install
    COPY . /app
    RUN npm run build -- --prod --aot --base-href $BASE_HREF
    
     
    
    FROM nginx
    EXPOSE 80
    COPY nginx.conf /etc/nginx/conf.d/default.conf
    COPY --from=builder /app/dist /usr/share/nginx/html