(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
| node_modules |
| version: '3' | |
| services: | |
| portainer: | |
| container_name: ${CONTAINER_NAME} | |
| restart: unless-stopped | |
| image: portainer/portainer | |
| volumes: | |
| - portainer_data:/data | |
| - /var/run/docker.sock:/var/run/docker.sock |
| FROM --platform=linux/amd64 node:16.17.0-alpine As development | |
| RUN apk add --no-cache python3 make g++ | |
| RUN apk add --no-cache git openssh bash \ | |
| && yarn global add -g @nestjs/cli @compodoc/compodoc ts-node typescript jest rxjs nx | |
| EXPOSE 3000 3333 9000 9001 |
| # Stage 1 - build | |
| FROM node:lts-alpine as builder | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run generate | |
| # Stage 2 - production | |
| FROM nginx:stable-alpine as final |
| # Stage 1 - build | |
| FROM node:8.15-alpine AS builder | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build | |
| # Stage 2 - production | |
| FROM node:8.15-alpine AS final |