diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f681fbd --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +Dockerfile +.git/ +tests/ + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1223eaa --- /dev/null +++ b/Dockerfile @@ -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"] +