-
Notifications
You must be signed in to change notification settings - Fork 155
/
Dockerfile
38 lines (34 loc) · 897 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
# If we change the Ruby version, we need to keep in sync:
#
# * The constraint in the Gemfile.
# * .ruby-version (used by CircleCI).
# * Install the version by hand in the server (uses RVM).
#
FROM ruby:3.3.4-alpine3.20
# LANG as recommended in the Encoding section of https://hub.docker.com/_/ruby/.
ENV LANG C.UTF-8
ENV PS1 '\w\$ '
ENV BUNDLE_JOBS 4
# openssh-client is handy to check SSH access from within the container.
# curl is used in deployments.
# cmake is needed to compile rugged.
# gcompat is needed by nokogiri.
# git is used by the application itself.
# tzdata is needed by the TZinfo gem.
RUN apk --no-cache add --update \
build-base \
bash \
openssh-client \
cmake \
curl \
gcompat \
git \
vim \
postgresql-client \
postgresql-dev \
tzdata \
nodejs \
yarn
RUN gem update --system
RUN gem install bundler -v '2.3.17'
WORKDIR /rails-contributors