phunguyen19
3/13/2019 - 4:21 AM

Nest.js starting project snippets

# docker-compose file for development

version: '3'

services:
  app:
    build:
      context: .
    ports:
      - '3000:3000'
    volumes:
      - ./:/app
    command: npm run start:dev
    env_file:
      - .env
# Development docker file for Node.js

FROM node:10-alpine

COPY package.json .

RUN npm install

RUN mkdir /app

WORKDIR /app

COPY ./ /app

RUN adduser -D user
USER user