-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile
28 lines (21 loc) · 1.13 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
FROM ubuntu:noble
LABEL maintainer="[email protected]"
RUN export LANGUAGE=C.UTF-8; export LANG=C.UTF-8; export LC_ALL=C.UTF-8; export DEBIAN_FRONTEND=noninteractive
COPY entrypoint /entrypoint.sh
RUN apt-get update -y && \
apt-get install --reinstall ca-certificates -y && \
apt-get install apt-transport-https wget gnupg -y && \
mkdir -p /usr/local/share/keyrings/ && \
wget -q -O - "https://repos.ripple.com/repos/api/gpg/key/public" | gpg --dearmor > ripple-key.gpg && \
mv ripple-key.gpg /usr/local/share/keyrings && \
echo "deb [signed-by=/usr/local/share/keyrings/ripple-key.gpg] https://repos.ripple.com/repos/rippled-deb noble stable" | tee -a /etc/apt/sources.list.d/ripple.list && \
apt-get update -y && \
apt-get install rippled -y && \
rm -rf /var/lib/apt/lists/* && \
export PATH=$PATH:/opt/ripple/bin/ && \
chmod +x /entrypoint.sh && \
echo '#!/bin/bash' > /usr/bin/server_info && echo '/entrypoint.sh server_info' >> /usr/bin/server_info && \
chmod +x /usr/bin/server_info
RUN ln -s /opt/ripple/bin/rippled /usr/bin/rippled
EXPOSE 80 443 5005 6006 51235
ENTRYPOINT [ "/entrypoint.sh" ]