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 10330c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
29 changes: 12 additions & 17 deletions Dockerfile
@@ -1,24 +1,19 @@
FROM ruby:2.4.6-slim-buster as main-image
MAINTAINER Sebastian Silva <sebastian@fuentelibre.org>
# Debian base
FROM debian:buster

FROM python:2.7 as gdal-builder
MAINTAINER Sebastian Silva <sebastian@fuentelibre.org>

# 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 \
imagemagick \
ruby-sinatra \
ruby-kramdown \
ruby-nokogiri \
bundler \
python-gdal

# Configure ImageMagick
COPY ./nolimit.xml /etc/ImageMagick-6/policy.xml
Expand Down
7 changes: 3 additions & 4 deletions scripts/install-deps.sh
Expand Up @@ -4,7 +4,6 @@ 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 10330c0

Please sign in to comment.