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.
|
- # Dockerfile
- ### STAGE 1: Build ###
-
- # We label our stage as 'builder'
- FROM node:12-alpine as builder
-
- COPY package*.json ./
-
- RUN npm set progress=false && npm config set depth 0 && npm cache clean --force
-
- ## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
- RUN npm i && mkdir /ng-app && cp -R ./node_modules ./ng-app
-
- WORKDIR /ng-app
-
- COPY . .
-
- RUN npm run build:ssr
-
-
- ### STAGE 2: Setup ###
-
- #FROM nginx:1.13.3-alpine
- FROM node:12-alpine
-
- ENV PORT=4100
-
- COPY --from=builder /ng-app/dist /dist
-
- WORKDIR /
- EXPOSE 4100
-
- RUN node dist/server/main.js
|