Skip to content

sleekybadger/docker-libpostal

Repository files navigation

docker-libpostal

CI Build Status Docker Build Status Docker Automated

Base libpostal Docker images built on Alpine Linux.

Versions v1.0.0 and v1.1-alpha – built on Alpine Linux.

All versions use sleekybadger/libpostal repository, but each version aligns with the following tags:

  • latest 1.1-alpine 1.1-alpha-alpine
  • 1.0-alpine 1.0.0-alpine

Table of Contents

Example

Using libpostal image to install pypostal package:

FROM sleekybadger/libpostal:1.1-alpha-alpine as libpostal-build

FROM python:3.7.1-alpine

COPY --from=libpostal-build /data /data
COPY --from=libpostal-build /usr/lib/libpostal.so /usr/lib/libpostal.so
COPY --from=libpostal-build /usr/lib/libpostal.so.1 /usr/lib/libpostal.so.1
COPY --from=libpostal-build /usr/include/libpostal /usr/include/libpostal

RUN apk add --no-cache build-base
RUN pip install postal

CMD ["python"]

License

docker-libpostal is released under the MIT license.

Credits

Thanks to:

Magic

(ノ◕ヮ◕)ノ*:・゚✧