]> git.openstreetmap.org Git - rails.git/blob - Dockerfile
Bump qs from 6.10.5 to 6.11.0
[rails.git] / Dockerfile
1 FROM ubuntu:20.04
2
3 ENV DEBIAN_FRONTEND=noninteractive
4
5 # Install system packages then clean up to minimize image size
6 RUN apt-get update \
7  && apt-get install --no-install-recommends -y \
8       build-essential \
9       curl \
10       default-jre-headless \
11       file \
12       firefox-geckodriver \
13       libarchive-dev \
14       libffi-dev \
15       libgd-dev \
16       libpq-dev \
17       libsasl2-dev \
18       libvips-dev \
19       libxml2-dev \
20       libxslt1-dev \
21       locales \
22       nodejs \
23       postgresql-client \
24       ruby2.7 \
25       ruby2.7-dev \
26       tzdata \
27       unzip \
28       yarnpkg \
29  && apt-get clean \
30  && rm -rf /var/lib/apt/lists/*
31
32 # Install compatible Osmosis to help users import sample data in a new instance
33 RUN curl -OL https://github.com/openstreetmap/osmosis/releases/download/0.47.2/osmosis-0.47.2.tgz \
34  && tar -C /usr/local -xzf osmosis-0.47.2.tgz
35
36 ENV DEBIAN_FRONTEND=dialog
37
38 # Setup app location
39 RUN mkdir -p /app
40 WORKDIR /app
41
42 # Install Ruby packages
43 ADD Gemfile Gemfile.lock /app/
44 RUN gem install bundler \
45  && bundle install
46
47 # Install NodeJS packages using yarnpkg
48 # `bundle exec rake yarn:install` will not work
49 ADD package.json yarn.lock /app/
50 RUN yarnpkg --ignore-engines install