[Tile-serving] [openstreetmap/osm2pgsql] Dockerfile for osm2pgsql (#1428)
ImreSamu
notifications at github.com
Sat Mar 13 15:06:40 UTC 2021
> the image size is very large (unoptimized ~1,4 GB with debian-slim-buster).
my2c:
* IF the latest `osm2pgsql` release ( `1.4.1` ) is ok ..
* THEN --> my proposal the `debian:bullseye` packaged version!
* I am using the `bullseye` everywhere .. it is ~stable and contains the latest releases from osmium / osm2pgsql / ...
simple example:
Now:
* 2021-03-13 14:53:02 osm2pgsql version 1.4.1
* size: 123MB
```
$ docker images | grep osm2pgsql
osm2pgsql bullseye 3f3d972b5a11 37 seconds ago 123MB
```
### Dockerfile
```
ARG BASE_IMAGE=debian
ARG BASE_TAG=bullseye-slim
FROM ${BASE_IMAGE}:${BASE_TAG}
ENV DEBIAN_FRONTEND noninteractive
ENV LANG en_US.UTF-8
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
osm2pgsql \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
RUN osm2pgsql --help
```
build: `docker build -t osm2pgsql:bullseye .`
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/discussions/1428#discussioncomment-478131
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210313/1491d183/attachment.htm>
More information about the Tile-serving
mailing list