X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/255ce8708a4e9099f9a9eaa92278a40629a4d883..c93606387698109949990efd09e38f372349ff1a:/Dockerfile diff --git a/Dockerfile b/Dockerfile index 8fcfa40e3..90ca79015 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:2.5 +FROM ruby:2.7 # Add yarn apt repository # https://classic.yarnpkg.com/en/docs/install#debian-stable @@ -19,7 +19,7 @@ RUN apt-get update && \ libxslt1-dev \ locales \ nodejs \ - osmosis \ + default-jre-headless \ phantomjs \ postgresql-client \ ruby-dev \ @@ -27,6 +27,10 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* +# Install current Osmosis +RUN curl -OL https://github.com/openstreetmap/osmosis/releases/download/0.47.2/osmosis-0.47.2.tgz && \ + tar -C /usr/local -xzf osmosis-0.47.2.tgz + # Setup app location RUN mkdir -p /app WORKDIR /app @@ -37,4 +41,4 @@ RUN bundle install # Install NodeJS packages ADD package.json yarn.lock /app/ -RUN yarn +RUN yarn install