-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathDockerfile.binary
More file actions
23 lines (18 loc) · 1.01 KB
/
Copy pathDockerfile.binary
File metadata and controls
23 lines (18 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Package a pre-built linux/amd64 `hydradx` binary into a runnable image — no compile.
# Runtime base matches Dockerfile.with-builder (bookworm, glibc 2.36) so a release binary
# built on the team's bookworm toolchain runs without a libc mismatch. Expects the binary
# at target/release/hydradx; build for the target arch with `docker buildx --platform`.
FROM debian:bookworm-slim
LABEL org.opencontainers.image.source="https://github.com/galacticcouncil/hydration-node"
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 -U -s /bin/sh -d /hydra hydra && \
mkdir -p /hydra/.local/share && \
chown -R hydra:hydra /hydra
COPY target/release/hydradx /usr/local/bin/hydradx
RUN chmod +x /usr/local/bin/hydradx
USER hydra
EXPOSE 30333 9933 9944 9615
VOLUME ["/hydra/.local/share"]
ENTRYPOINT ["/usr/local/bin/hydradx"]
CMD ["--prometheus-external", "--", "--execution=wasm" ,"--telemetry-url", "wss://telemetry.hydradx.io:9000/submit/ 0"]