-FROM ruby:2.5
+FROM ruby:2.7
# Add yarn apt repository
# https://classic.yarnpkg.com/en/docs/install#debian-stable
libxslt1-dev \
locales \
nodejs \
- osmosis \
+ default-jre-headless \
phantomjs \
postgresql-client \
ruby-dev \
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
# Install NodeJS packages
ADD package.json yarn.lock /app/
-RUN yarn
+RUN yarn install