Skip to content

Simple docker setup for dev & production environment including unit tests and e2e execution

Notifications You must be signed in to change notification settings

bjorkblom/simple-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple docker development/production setup

Start developing:

  1. Install docker-compose
  2. docker-compose up
  3. Open http://localhost

docker-compose.yml

The service test is just an example of adding a sep test service that runs all test while developing.

Build and run production container

  1. docker build -t web .
  2. docker run -p 80:3000 -it web
  3. Open http://localhost

Build and run tests

  1. docker build --target test -t web .
  2. docker run -it web

Build and run e2e

  1. docker build --target e2e -t web .
  2. docker run -it web

About

Simple docker setup for dev & production environment including unit tests and e2e execution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published