/tutorials_tank_node

Node dockerfile

Primary LanguageDockerfile

Node.js Dockerfile for Tutorials Tank

Build Status

How to use it with docker-compose

  frontend:
    image: zawiszaty/tutorials_tank_node:latest
    expose:
      - 80
    ports:
      - 80:3000
    volumes:
      - ./web-app:/usr/src/app
    command: ['npm','start']

But you must add this line to your package.json in scrpits

"start": "npm install; react-scripts start",