I want to integrate gis library (GDAL)

Hi,

Referencing the example under “Get started with Docker Compose”

I want to integrate gis library (GDAL). But I cannot do it.
How can I do that?

regards

it is python flask app.


import time

import redis
from flask import Flask

app = Flask(name)
cache = redis.Redis(host=‘redis’, port=6379)

def get_hit_count():
retries = 5
while True:
try:
return cache.incr(‘hits’)
except redis.exceptions.ConnectionError as exc:
if retries == 0:
raise exc
retries -= 1
time.sleep(0.5)

@app.route(’/’)
def hello():
count = get_hit_count()
return ‘Hello World! I have been seen {} times.\n’.format(count)

if name == “main”:
app.run(host=“0.0.0.0”, debug=True)

Dockerfile


FROM python:3.4-alpine
ADD . /code
WORKDIR /code
RUN pip install -r requirements.txt
CMD [“python”, “app.py”]