]> git.openstreetmap.org Git - rails.git/blob - Dockerfile
put osmosis installation back
[rails.git] / Dockerfile
1 FROM ruby:2.5
2
3 # Add yarn apt repository
4 # https://classic.yarnpkg.com/en/docs/install#debian-stable
5 RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
6     echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
7
8 # Install system packages
9 RUN apt-get update && \
10     apt-get install --no-install-recommends -y \
11       build-essential \
12       imagemagick \
13       libarchive-dev \
14       libffi-dev \
15       libmagickwand-dev \
16       libpq-dev \
17       libsasl2-dev \
18       libxml2-dev \
19       libxslt1-dev \
20       locales \
21       nodejs \
22       osmosis \
23       phantomjs \
24       postgresql-client \
25       ruby-dev \
26       yarn && \
27     apt-get clean && \
28     rm -rf /var/lib/apt/lists/*
29
30 # Setup app location
31 RUN mkdir -p /app
32 WORKDIR /app
33
34 # Install Ruby packages
35 ADD Gemfile Gemfile.lock /app/
36 RUN bundle install
37
38 # Install NodeJS packages
39 ADD package.json yarn.lock /app/
40 RUN yarn