simple page with news from all around the globe
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

34 linhas
593B

  1. # Dockerfile
  2. ### STAGE 1: Build ###
  3. # We label our stage as 'builder'
  4. FROM node:12-alpine as builder
  5. COPY package*.json ./
  6. RUN npm set progress=false && npm config set depth 0 && npm cache clean --force
  7. ## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
  8. RUN npm i && mkdir /ng-app && cp -R ./node_modules ./ng-app
  9. WORKDIR /ng-app
  10. COPY . .
  11. RUN npm run build:ssr
  12. ### STAGE 2: Setup ###
  13. #FROM nginx:1.13.3-alpine
  14. FROM node:12-alpine
  15. ENV PORT=4100
  16. COPY --from=builder /ng-app/dist /dist
  17. WORKDIR /
  18. EXPOSE 4100
  19. RUN node dist/server/main.js