Add support for Docker.
This commit is contained in:
Sergey Vartanov 2022-02-01 22:20:49 +03:00 committed by GitHub
commit 1974c0aafe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
Dockerfile
.git/
tests/

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM python:3.9-slim-bullseye
WORKDIR /app
COPY . /app/
RUN \
apt update && \
apt install -y --no-install-recommends gcc libcairo2-dev libgeos-dev && \
pip install --upgrade pip && \
pip install . && \
mkdir -p /maps/cache
VOLUME ["/maps"]
ENTRYPOINT ["map-machine"]