Giter Club home page Giter Club logo

multi-stage-docker's Introduction

multi-stage-docker

This is a demo of some capabilities of Multi-stage Docker builds.

The core of the demo is a simple Express server running on http://localhost/3000. Start it like this so that you can observe Docker's build process:

`docker compose up --build`

The commits tell the story of how this this demo app grew and what Docker features were used along the way. You can git checkout any of the various tagged commits and run docker compose up --build to see what difference each change set makes. There are also additional comments in Dockerfile, .dockerignore, and compose.yml.

To test your understanding, here are some questions:

  1. After adding the tests stage, the build stage now runs when tests change. How can you make that not be the case?
  2. What would be the pros and cons of moving tests into a nested package, like the server?

multi-stage-docker's People

Contributors

tansongyang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.