Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Latest commit

 

History

History
8 lines (5 loc) · 792 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 792 Bytes

Node Dockerfiles

Two different Node applications are being used here with Dockerfiles, one running an express web server (a server side application) and another building a client side application using webpack.

  • Web: the whole application is copied into the Docker image to easily transport the Docker image.
  • Webpack: the Docker image only contains the installed dependencies from package.json and then we spin it up as a Docker image with the whole directory mounted int so we can quickly compile the Webpack client app. This keeps the build time and size down on the image because we should eventually rarely change our package.json.

We also pass down GIT_SHA as a Docker build arg as a environment variable and expose it as X-App-Version header via some small middleware.