diff --git a/Dockerfile b/Dockerfile index 6b6604e..aa7a966 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,20 @@ -FROM ruby:2.4.6-slim-buster as main-image -MAINTAINER Sebastian Silva +# Debian base +FROM debian:buster -FROM python:2.7 as gdal-builder +MAINTAINER Sebastian Silva # Install the application. RUN apt-get update -qq && \ - apt-get install -y --no-install-recommends \ - gdal-bin \ - python-gdal - -FROM main-image - -COPY --from=gdal-builder /usr/share /usr/share -COPY --from=gdal-builder /usr/bin /usr/bin - -RUN apt-get update -qq && \ - apt-get install -y --no-install-recommends \ - build-essential \ - git \ - imagemagick + apt-get install -y \ + gdal-bin \ + ruby \ + zlib1g-dev \ + imagemagick \ + ruby-sinatra \ + ruby-kramdown \ + ruby-nokogiri \ + bundler \ + python-gdal # Configure ImageMagick COPY ./nolimit.xml /etc/ImageMagick-6/policy.xml diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index 35d10d8..e709983 100755 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -4,7 +4,7 @@ apt-get update -qq && \ apt-get install -y \ gdal-bin \ python-gdal \ - build-essential \ - git \ pandoc \ - imagemagick \ No newline at end of file + ruby-kramdown \ + ruby-nokogiri \ + imagemagick