starlightromero / dockerignore-example

How to use .dockerignore to the fullest potential

Home Page:https://medium.com/nerd-for-tech/bigger-dockerignore-smaller-docker-images-49fa22e51c7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerignore Example

The corresponding article can be found here.

Dockerignore Example serves to show how .dockerignore files work and the benefits of using them, along with various examples.

Software Required

  • docker
  • docker-compose
  • make

How to Run

Clone the repo

git clone git@github.com:starlightromero/dockerignore-example.git

cd into the directory

cd dockerignore-example

Run the application!

Makefile Commands

build-dev: Build dockerignore-example dev app

start-dev: Start dockerignore-example dev app

stop-dev: Stop dockerignore-example dev app

build-prod: Build dockerignore-example prod app

start-prod: Start dockerignore-example prod app

stop-prod: Stop dockerignore-example prod app

About

How to use .dockerignore to the fullest potential

https://medium.com/nerd-for-tech/bigger-dockerignore-smaller-docker-images-49fa22e51c7


Languages

Language:Go 53.3%Language:Makefile 25.1%Language:Dockerfile 20.7%Language:Shell 0.9%