2021-05-14 11:42:53 +00:00
|
|
|
# Dockerfiles
|
|
|
|
|
|
|
|
The Dockerfiles used here are using multi-staged builds.
|
|
|
|
For building a specific stage locally docker needs to know the target stage with `--target`.
|
|
|
|
|
2022-05-24 09:57:06 +00:00
|
|
|
## Examples for Debian images
|
|
|
|
|
|
|
|
For the dev image:
|
|
|
|
``bash
|
|
|
|
docker build --target dev -f ./docker-files/debian.Dockerfile -t glances:dev .
|
|
|
|
``
|
|
|
|
|
|
|
|
For the minimal image:
|
|
|
|
``bash
|
|
|
|
docker build --target minimal -f ./docker-files/debian.Dockerfile -t glances:minimal .
|
|
|
|
``
|
|
|
|
|
|
|
|
For the full image:
|
|
|
|
``bash
|
|
|
|
docker build --target full -f ./docker-files/debian.Dockerfile -t glances:full .
|
|
|
|
``
|
|
|
|
|
|
|
|
## Examples for Alpine images
|
|
|
|
|
2021-05-14 11:42:53 +00:00
|
|
|
For the dev image:
|
|
|
|
``bash
|
2022-05-24 09:57:06 +00:00
|
|
|
docker build --target dev -f ./docker-files/alpine.Dockerfile -t glances:dev .
|
2021-05-14 11:42:53 +00:00
|
|
|
``
|
|
|
|
|
|
|
|
For the minimal image:
|
|
|
|
``bash
|
2022-05-24 09:57:06 +00:00
|
|
|
docker build --target minimal -f ./docker-files/alpine.Dockerfile -t glances:minimal .
|
2021-05-14 11:42:53 +00:00
|
|
|
``
|
|
|
|
|
|
|
|
For the full image:
|
|
|
|
``bash
|
2022-05-24 09:57:06 +00:00
|
|
|
docker build --target full -f ./docker-files/alpine.Dockerfile -t glances:full .
|
2021-05-14 11:42:53 +00:00
|
|
|
``
|