Skip to content

Commit

Permalink
Trimming out Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alaxalves committed Apr 14, 2020
1 parent 4ec051c commit d39be94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
30 changes: 13 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
FROM ruby:2.4.6-slim-buster as main-image
MAINTAINER Sebastian Silva <[email protected]>
# Debian base
FROM debian:buster

FROM python:2.7 as gdal-builder
MAINTAINER Sebastian Silva <[email protected]>

# 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
Expand Down
6 changes: 3 additions & 3 deletions scripts/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apt-get update -qq && \
apt-get install -y \
gdal-bin \
python-gdal \
build-essential \
git \
pandoc \
imagemagick
ruby-kramdown \
ruby-nokogiri \
imagemagick

0 comments on commit d39be94

Please sign in to comment.