kopia lustrzana https://github.com/kartoza/docker-postgis
mention that locales can be stripped down for performance (#239)
rodzic
9b82076178
commit
bcab87e3d8
10
README.md
10
README.md
|
@ -79,7 +79,9 @@ Now edit ``71-apt-cacher-ng`` then do:
|
|||
docker build -t kartoza/postgis .
|
||||
```
|
||||
|
||||
### Building with alternative base distributions
|
||||
### Build image
|
||||
|
||||
#### Alternative base distributions
|
||||
|
||||
There are build args for `DISTRO` (=debian), `IMAGE_VERSION` (=buster)
|
||||
and `IMAGE_VARIANT` (=slim) which can be used to control the base image used
|
||||
|
@ -90,6 +92,12 @@ For example making Ubuntu 20.04 based build (for better arm64 support)
|
|||
docker build --build-arg DISTRO=ubuntu --build-arg IMAGE_VERSION=focal --build-arg IMAGE_VARIANT="" -t kartoza/postgis .
|
||||
```
|
||||
|
||||
#### Locales
|
||||
|
||||
By default, the image build will include **all** `locales` to cover any value for `locale` settings such as `DEFAULT_COLLATION`, `DEFAULT_CTYPE` or `DEFAULT_ENCODING`.
|
||||
|
||||
You can safely delete all `locales` except for the ones you need in `scripts/locale.gen`. This will speed up the build considerably.
|
||||
|
||||
## Run
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue