forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile.base
29 lines (26 loc) · 813 Bytes
/
Containerfile.base
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
ARG RUBY_VERSION=3.2.0
ARG DEBIAN_VERSION=bullseye
FROM public.ecr.aws/docker/library/ruby:${RUBY_VERSION}-slim-${DEBIAN_VERSION} AS ruby-upstream
ARG NODE_MAJOR=20
ARG YARN_VERSION=1
RUN apt update && \
apt install -y \
curl \
software-properties-common \
gnupg2 \
&& \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo "deb https://deb.nodesource.com/node_${NODE_MAJOR}.x $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt update && \
apt install -y \
imagemagick \
iproute2 \
libjemalloc2 \
less \
postgresql-client \
tzdata \
nodejs \
&& \
apt clean
RUN npm install -g yarn@$YARN_VERSION
CMD [ "/usr/local/bin/irb" ]