-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (41 loc) · 1.24 KB
/
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
40
41
42
43
44
45
FROM ruby:3.3-slim-bookworm
MAINTAINER Sebastian Weisgerber <[email protected]>
ARG DEBIAN_FRONTEND="noninteractive"
# otherwise can see some encoding issues:
# https://oncletom.io/2015/docker-encoding/
ENV LANG=C.UTF-8
ENV RACK_ENV="production" \
RAILS_ENV="production"
# environment settings
RUN apt-get update \
&& apt-get install -y \
build-essential \
curl \
&& curl -sL http://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& echo "deb http://deb.nodesource.com/node_18.x bullseye main" > /etc/apt/sources.list.d/nodesource.list \
&& echo "deb-src http://deb.nodesource.com/node_18.x bullseye main" >> /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install -y \
build-essential \
curl \
lftp \
libffi-dev \
libpq-dev \
ca-certificates \
subversion \
imagemagick \
python3 \
virtualenv \
python3-pip \
nodejs \
&& gem update --system \
&& echo "**** cleanup ****" \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/* \
/var/log/* \
/usr/share/man
CMD [ "irb" ]