forked from publiclab/mapknitter-exporter-sinatra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 732 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Debian base
FROM debian:buster
MAINTAINER Sebastian Silva <sebastian@fuentelibre.org>
# Install the application.
RUN apt-get update -qq && \
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
# Copy local code to the container image.
ADD . /app
WORKDIR /app
# Install production dependencies.
ENV BUNDLE_FROZEN=true
RUN bundle install
CMD bundle exec ruby app.rb -o 0.0.0.0 -p $PORT