Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docker image build #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ WORKDIR /opt/marblecutter
COPY requirements-server.txt /opt/marblecutter/
COPY requirements.txt /opt/marblecutter/

RUN pip install -U numpy && \
RUN pip install -U numpy~=1.16.0 && \
pip install -r requirements-server.txt && \
rm -rf /root/.cache

COPY templates /opt/marblecutter/templates
COPY virtual /opt/marblecutter/virtual
COPY server.py /opt/marblecutter/server.py

USER nobody

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# marblecutter-virtual

![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/olivierdalang/marblecutter-virtual.svg)

I am a tile server for HTTP(S)-accessible [Cloud Optimized GeoTIFFs
(COGs)](http://www.cogeo.org/).

Expand Down
2 changes: 1 addition & 1 deletion requirements-server.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements.txt

gevent
gunicorn
gunicorn<20
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
cachetools ~= 2.0.0
flask-cors
Pillow < 7
# marblecutter[web] ~= 0.3.1
https://github.com/mojodna/marblecutter/archive/5b9040b.tar.gz#egg=marblecutter[web]
rasterio[s3] ~= 1.0
numpy
numpy ~= 1.16.0
serverless-wsgi
# temporary workaround for https://github.com/mapbox/rasterio/issues/1651
mock
1 change: 1 addition & 0 deletions virtual/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from .catalogs import VirtualCatalog

logging.basicConfig()
LOG = logging.getLogger(__name__)

IMAGE_TRANSFORMATION = Image()
Expand Down