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 \
26 software-properties-common \
29 && curl https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
30 && add-apt-repository -y -U https://deb.nodesource.com/node_18.x \
31 && apt-get install --no-install-recommends -y \
33 && npm install --global yarn \
34 && add-apt-repository -y ppa:mozillateam/ppa \
35 && echo "Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001" > /etc/apt/preferences.d/mozilla-firefox \
36 && apt-get install --no-install-recommends -y \
39 && rm -rf /var/lib/apt/lists/*
41 # Install compatible Osmosis to help users import sample data in a new instance
42 RUN curl -OL https://github.com/openstreetmap/osmosis/releases/download/0.47.2/osmosis-0.47.2.tgz \
43 && tar -C /usr/local -xzf osmosis-0.47.2.tgz
45 ENV DEBIAN_FRONTEND=dialog
51 # Install Ruby packages
52 ADD Gemfile Gemfile.lock /app/
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