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 \
28 software-properties-common \
33 && npm install --global yarn \
34 # We can't use snap packages for firefox inside a container, so we need to get firefox+geckodriver elsewhere
35 && add-apt-repository -y ppa:mozillateam/ppa \
36 && echo "Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001" > /etc/apt/preferences.d/mozilla-firefox \
37 && apt-get install --no-install-recommends -y \
40 && rm -rf /var/lib/apt/lists/*
42 # Install compatible Osmosis to help users import sample data in a new instance
43 RUN curl -OL https://github.com/openstreetmap/osmosis/releases/download/0.47.2/osmosis-0.47.2.tgz \
44 && tar -C /usr/local -xzf osmosis-0.47.2.tgz
46 ENV DEBIAN_FRONTEND=dialog
52 # Install Ruby packages
53 ADD Gemfile Gemfile.lock /app/
56 # Install NodeJS packages using yarn
57 ADD package.json yarn.lock /app/
58 ADD bin/yarn /app/bin/
59 RUN bundle exec bin/yarn install