-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
76 lines (69 loc) · 1.5 KB
/
Dockerfile
File metadata and controls
76 lines (69 loc) · 1.5 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM debian:13-slim
# install useful packages
RUN set -eux; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
build-essential \
byobu \
ca-certificates \
curl \
default-libmysqlclient-dev \
default-mysql-client \
dnsutils \
git \
inetutils-ping \
inetutils-telnet \
inetutils-tools \
inetutils-traceroute \
less \
libpq-dev \
nano \
postgresql-client \
python-is-python3 \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
redis-tools \
ruby \
ruby-dev \
screen \
ssh-client \
telnet \
unzip \
vim \
wget \
zstd \
; \
rm -rf /var/lib/apt/lists/*
# install yq - https://github.com/mikefarah/yq
RUN set -eux; \
\
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq; \
chmod +x /usr/local/bin/yq
# install duckdb - https://duckdb.org/
RUN set -eux; \
\
curl https://install.duckdb.org | sh; \
ln -s /root/.duckdb/cli/latest/duckdb /usr/local/bin/duckdb
# skip installing gem documentation with `gem install`/`gem update`
RUN set -eux; \
mkdir -p /usr/local/etc; \
echo 'gem: --no-document' >> /usr/local/etc/gemrc
# install useful ruby gems
RUN set -eux; \
\
gem install -N \
bundler \
http \
mysql2 \
pg \
redis \
sequel \
;
# run all scripts in /etc/console/init/boot.d
RUN set -eux; \
test ! -d /etc/console/init/boot.d || find /etc/console/init/boot.d -maxdepth 1 -type f -exec bash {} \;
# sleep forever
CMD ["/bin/sh", "-c", "--", "sleep infinity"]