]> git.openstreetmap.org Git - rails.git/blob - Dockerfile
Update bundle
[rails.git] / Dockerfile
1 FROM ruby:3.2-bookworm
2
3 ENV DEBIAN_FRONTEND=noninteractive
4
5 # Install system packages then clean up to minimize image size
6 RUN apt-get update \
7   && apt-get install --no-install-recommends -y \
8   build-essential \
9   curl \
10   default-jre-headless \
11   file \
12   git-core \
13   gpg-agent \
14   libarchive-dev \
15   libffi-dev \
16   libgd-dev \
17   libpq-dev \
18   libsasl2-dev \
19   libvips-dev \
20   libxml2-dev \
21   libxslt1-dev \
22   libyaml-dev \
23   locales \
24   postgresql-client \
25   tzdata \
26   unzip \
27   nodejs \
28   npm \
29   osmosis \
30   ca-certificates \
31   firefox-esr
32
33 # Install yarn globally
34 RUN npm install --global yarn
35
36 ENV DEBIAN_FRONTEND=dialog
37
38 # Setup app location
39 RUN mkdir -p /app
40 WORKDIR /app
41
42 # Install Ruby packages
43 COPY Gemfile Gemfile.lock /app/
44 RUN bundle install
45
46 # Install NodeJS packages using yarn
47 COPY package.json yarn.lock /app/
48 COPY bin/yarn /app/bin/
49 RUN bundle exec bin/yarn install