]> git.openstreetmap.org Git - rails.git/blob - Dockerfile
Replaced raw PGSQL testing file with Osmosis-driven XML file
[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       default-jre-headless \
23       phantomjs \
24       postgresql-client \
25       ruby-dev \
26       yarn && \
27     apt-get clean && \
28     rm -rf /var/lib/apt/lists/*
29
30 # Install current Osmosis
31 RUN curl -OL https://github.com/openstreetmap/osmosis/releases/download/0.47.2/osmosis-0.47.2.tgz && \
32     tar -C /usr/local -xzf osmosis-0.47.2.tgz
33
34 # Setup app location
35 RUN mkdir -p /app
36 WORKDIR /app
37
38 # Install Ruby packages
39 ADD Gemfile Gemfile.lock /app/
40 RUN bundle install
41
42 # Install NodeJS packages
43 ADD package.json yarn.lock /app/
44 RUN yarn