https://github.com/fistgang/buildme
An practical example of building software with Docker.
https://github.com/fistgang/buildme
containers docker go multistage-docker
Last synced: 24 days ago
JSON representation
An practical example of building software with Docker.
- Host: GitHub
- URL: https://github.com/fistgang/buildme
- Owner: FistGang
- License: mit
- Created: 2024-06-10T02:34:18.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-10T02:37:48.000Z (about 2 years ago)
- Last Synced: 2024-12-27T18:14:20.896Z (over 1 year ago)
- Topics: containers, docker, go, multistage-docker
- Language: Dockerfile
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Build with Docker
This repository contains an example Go application, used in the
[Build with Docker guide](https://docs.docker.com/build/guide).
This goal of this guide is to illustrate Docker Build features and best
practices.
## In this repository
You'll find the Go source code for the application in the `cmd` directory. For
the purpose of the Build guide, there's no need to understand or interact with
the source code in any way. The guide only refers to Dockerfile changes.
The `Dockerfile` in the root directory of this project is the starting point for
this guide. It contains the unmodified version.
The `chapters` directory contains the finished Dockerfile examples for each
section of the guide. The sections are enumerated 1-8, and the Dockerfiles in
this directory are named after the section that they correspond to.
## Tasks
This repository implements [Task](https://taskfile.dev/) to make it easier to
switch between stages, or reset Dockerfile.
To reset your Dockerfile to a specific stage, install Task and run
`task goto:`. This overwrites the contents of the Dockerfile to the
**finished version** of the selected stage.
For example, running `task goto:1` resets the Dockerfile the starting point of
the guide. Running `task goto:4` resets the Dockerfile to reflect the **finished
version** of the 4th section of the guide.