blob: 594b0d70e62c18a7416398db4ce02ba9484a3f46 (
plain) (
blame)
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
|
# docker build -f docker/base.Dockerfile -t ghcr.io/coinos/base docker/
FROM debian:trixie-slim
ARG BUN_VERSION=1.4.3
RUN apt-get update && apt-get install -y --no-install-recommends \
curl unzip ca-certificates wget \
libpq5 libsodium23 libatomic1 jq socat inotify-tools \
liblmdb0 libsecp256k1-2 tini \
&& curl -fsSL https://bun.sh/install | bash -s "bun-v${BUN_VERSION}" \
&& mv /root/.bun/bin/bun /usr/local/bin/bun \
&& ln -s /usr/local/bin/bun /usr/local/bin/bunx \
&& rm -rf /root/.bun \
&& apt-get purge -y curl unzip \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
/usr/share/doc /usr/share/man /usr/share/locale \
/usr/share/info /var/log/* /tmp/*
COPY bun-distrust.ts /tmp/
RUN cp /usr/local/bin/bun /tmp/bun \
&& /tmp/bun /tmp/bun-distrust.ts /usr/local/bin/bun \
&& rm /tmp/bun /tmp/bun-distrust.ts
RUN groupadd -g 1000 bun && useradd -u 1000 -g bun -m -s /bin/sh bun
WORKDIR /home/bun/app
|