mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-23 17:28:23 +00:00
the /data folder is actually required for the key to inserted in the node
This commit is contained in:
parent
98383f0e9f
commit
aace180cf1
2 changed files with 9 additions and 6 deletions
|
|
@ -42,8 +42,9 @@ RUN apt-get update && \
|
|||
|
||||
# Create datahaven user and directories
|
||||
RUN useradd -m -u 1001 -U -s /bin/sh -d /datahaven datahaven && \
|
||||
mkdir -p /datahaven/.local/share && \
|
||||
chown -R datahaven:datahaven /datahaven/.local/share
|
||||
mkdir -p /data /datahaven/.local/share && \
|
||||
chown -R datahaven:datahaven /data /datahaven/.local/share && \
|
||||
ln -s /data /datahaven/.local/share/datahaven-node
|
||||
|
||||
USER datahaven
|
||||
|
||||
|
|
@ -60,7 +61,7 @@ ENV RUST_BACKTRACE=1
|
|||
# 9615: Prometheus metrics
|
||||
EXPOSE 30333 9944 9615
|
||||
|
||||
VOLUME ["/datahaven/.local/share/datahaven-node"]
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["datahaven-node"]
|
||||
CMD ["--tmp"]
|
||||
|
|
|
|||
|
|
@ -53,8 +53,10 @@ COPY --from=builder \
|
|||
|
||||
# Create datahaven user and directories
|
||||
RUN useradd -m -u 1001 -U -s /bin/sh -d /datahaven datahaven && \
|
||||
mkdir -p /datahaven/.local/share && \
|
||||
chown -R datahaven:datahaven /datahaven/.local/share
|
||||
mkdir -p /data /datahaven/.local/share && \
|
||||
chown -R datahaven:datahaven /data /datahaven/.local/share && \
|
||||
ln -s /data /datahaven/.local/share/datahaven-node
|
||||
|
||||
|
||||
USER datahaven
|
||||
|
||||
|
|
@ -69,6 +71,6 @@ RUN chmod uog+x /usr/local/bin/datahaven*
|
|||
# 9615: Prometheus metrics
|
||||
EXPOSE 30333 9944 9615
|
||||
|
||||
VOLUME ["/datahaven/.local/share/datahaven-node"]
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/datahaven-node"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue