mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-04 00:59:54 +02:00
Merge.
Add support for Docker.
This commit is contained in:
commit
1974c0aafe
2 changed files with 20 additions and 0 deletions
4
.dockerignore
Normal file
4
.dockerignore
Normal file
|
@ -0,0 +1,4 @@
|
|||
Dockerfile
|
||||
.git/
|
||||
tests/
|
||||
|
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue