-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 835 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ruby:3.3.0
ENV DEBIAN_FRONTEND noninteractive
# Enable parallel downloads in apt
RUN echo 'Acquire::Queue-Mode "host";' >> /etc/apt/apt.conf # Change host for access to disable parallel downloads
# Force apt to retry downloads
RUN echo 'APT::Acquire::Retries=10;' >> /etc/apt/apt.conf
RUN apt-get update && apt-get install -y \
unzip \
curl \
git-core \
build-essential \
patch \
libpq-dev \
postgresql-client \
libsqlite3-dev \
sqlite3 \
libxslt1-dev \
liblzma-dev \
libvips \
libfreetype6 \
libfontconfig \
xvfb
RUN echo 'gem: --no-rdoc --no-ri' >> $HOME/.gemrc
RUN gem uninstall -i /usr/local/lib/ruby/gems/3.3.0 bundler
RUN gem install bundler -v 2.5.6
ENV APP_HOME /usr/src/app
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install --jobs 3
ADD . $APP_HOME