Update
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m50s
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m50s
This commit is contained in:
parent
833ea55233
commit
cf93dde1c0
@ -21,10 +21,14 @@ RUN apt-get update && apt-get install -y ca-certificates strace
|
||||
RUN useradd -m -d /home/bitcoin -u 1000 bitcoin
|
||||
|
||||
COPY --from=builder /app/target/release/sdk_relay /usr/local/bin/sdk_relay
|
||||
RUN chown bitcoin:bitcoin /usr/local/bin/sdk_relay && \
|
||||
chmod 755 /usr/local/bin/sdk_relay
|
||||
|
||||
# Configuration via build arg
|
||||
ARG CONF
|
||||
RUN echo "$CONF" > /home/bitcoin/.conf
|
||||
RUN echo "$CONF" > /home/bitcoin/.conf && \
|
||||
chown bitcoin:bitcoin /home/bitcoin/.conf && \
|
||||
chmod 644 /home/bitcoin/.conf
|
||||
|
||||
# Créer le répertoire .4nk avec les bonnes permissions
|
||||
RUN mkdir -p /home/bitcoin/.4nk && \
|
||||
@ -39,4 +43,4 @@ VOLUME ["/home/bitcoin/.4nk"]
|
||||
VOLUME ["/home/bitcoin/.bitcoin"]
|
||||
|
||||
EXPOSE 8090 8091
|
||||
ENTRYPOINT ["sdk_relay", "--config", ".conf"]
|
||||
ENTRYPOINT ["sdk_relay", "--config", "/home/bitcoin/.conf"]
|
Loading…
x
Reference in New Issue
Block a user