]> git.openstreetmap.org Git - rails.git/blob - Dockerfile
Migrated from ruby:2.7 Docker image to ubuntu:20.04
[rails.git] / Dockerfile
1 FROM ubuntu:20.04
2
3 ENV DEBIAN_FRONTEND=noninteractive
4
5 # Install system packages
6 RUN apt-get update && \
7     apt-get install --no-install-recommends -y \
8       build-essential \
9       curl \
10       default-jre-headless \
11       firefox-geckodriver \
12       imagemagick \
13       libarchive-dev \
14       libffi-dev \
15       libmagickwand-dev \
16       libpq-dev \
17       libsasl2-dev \
18       libxml2-dev \
19       libxslt1-dev \
20       locales \
21       nodejs \
22       postgresql-client \
23       ruby2.7 \
24       ruby2.7-dev \
25       tzdata \
26       yarnpkg && \
27     apt-get clean && \
28     rm -rf /var/lib/apt/lists/*
29
30 # Install current Osmosis
31 RUN curl -OL https://github.com/openstreetmap/osmosis/releases/download/0.47.2/osmosis-0.47.2.tgz && \
32     tar -C /usr/local -xzf osmosis-0.47.2.tgz
33
34 ENV DEBIAN_FRONTEND=dialog
35
36 # Setup app location
37 RUN mkdir -p /app
38 WORKDIR /app
39
40 # Install Ruby packages
41 ADD Gemfile Gemfile.lock /app/
42 RUN gem install bundler && \
43     bundle install
44
45 # Install NodeJS packages
46 ADD package.json yarn.lock /app/
47 RUN yarnpkg install