mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
Merge branch 'main' into misc/improve-e2e-tests
This commit is contained in:
commit
69bdd3ae5e
1 changed files with 0 additions and 25 deletions
|
|
@ -1,25 +0,0 @@
|
|||
# Dockerfile.local - Fast local image build using pre-built binary
|
||||
# Usage: docker build -f Dockerfile.local -t datahaven:local .
|
||||
# Prerequisite: cargo build --release (or --release --features fast-runtime)
|
||||
|
||||
FROM docker.io/parity/base-bin:latest
|
||||
|
||||
# Copy the pre-built binary from local target directory
|
||||
COPY ./target/release/datahaven-node /usr/local/bin/datahaven-node
|
||||
|
||||
# Make sure binary is executable
|
||||
RUN chmod +x /usr/local/bin/datahaven-node
|
||||
|
||||
USER root
|
||||
RUN useradd -m -u 1001 -U -s /bin/sh -d /datahaven datahaven && \
|
||||
mkdir -p /data /datahaven/.local/share && \
|
||||
chown -R datahaven:datahaven /data && \
|
||||
ln -s /data /datahaven/.local/share/datahaven && \
|
||||
/usr/local/bin/datahaven-node --version
|
||||
|
||||
USER datahaven
|
||||
|
||||
EXPOSE 30333 9933 9944 9615
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/datahaven-node"]
|
||||
Loading…
Reference in a new issue