3 ENV DEBIAN_FRONTEND=noninteractive
5 # Install system packages then clean up to minimize image size
7 && apt-get install --no-install-recommends -y \
10 default-jre-headless \
25 software-properties-common \
28 && curl https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
29 && add-apt-repository -y -U https://deb.nodesource.com/node_18.x \
30 && apt-get install --no-install-recommends -y \
32 && npm install --global yarn \
33 && add-apt-repository -y ppa:mozillateam/ppa \
34 && echo "Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001" > /etc/apt/preferences.d/mozilla-firefox \
35 && apt-get install --no-install-recommends -y \
38 && rm -rf /var/lib/apt/lists/*
40 # Install compatible Osmosis to help users import sample data in a new instance
41 RUN curl -OL https://github.com/openstreetmap/osmosis/releases/download/0.47.2/osmosis-0.47.2.tgz \
42 && tar -C /usr/local -xzf osmosis-0.47.2.tgz
44 ENV DEBIAN_FRONTEND=dialog
50 # Install Ruby packages
51 ADD Gemfile Gemfile.lock /app/
52 RUN gem install bundler \
55 # Install NodeJS packages using yarn
56 ADD package.json yarn.lock /app/
57 ADD bin/yarn /app/bin/
58 RUN bundle exec bin/yarn install