Skip to content

Commit

Permalink
Merge pull request #1 from spheronFdn/sumit/PRO-1606
Browse files Browse the repository at this point in the history
Added dockerfile and entrypoint.sh
  • Loading branch information
tech-sumit authored Jan 28, 2025
2 parents 08062e0 + dec20ee commit dfe3f25
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM privasea/acceleration-node-beta:latest

# Copy custom entrypoint
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

# Override the base image's entrypoint
ENTRYPOINT ["/entrypoint.sh"]
14 changes: 14 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
set -e

# Create the /app/config folder if it doesn't exist
mkdir -p /app/config

# Write keystore file
echo "${KEYSTORE_CONTENT}" > /app/config/wallet_keystore
chmod 600 /app/config/wallet_keystore

export KEYSTORE_PASSWORD="${KEYSTORE_PASSWORD}"

# Then run the default command
exec ./node-calc "$@"

0 comments on commit dfe3f25

Please sign in to comment.