Update Dockerfile
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 24s
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 24s
This commit is contained in:
parent
740bddc0e9
commit
60aa257f04
@ -15,7 +15,7 @@ RUN --mount=type=ssh cargo build --release
|
||||
|
||||
# ---- image finale ----
|
||||
FROM debian:bookworm-slim
|
||||
RUN apt-get update && apt-get install -y ca-certificates strace
|
||||
RUN apt-get update && apt-get install -y ca-certificates strace tee
|
||||
|
||||
# Créer l'utilisateur bitcoin
|
||||
RUN useradd -m -d /home/bitcoin -u 1000 bitcoin
|
||||
@ -27,17 +27,18 @@ ARG CONF
|
||||
RUN echo "$CONF" > /home/bitcoin/.conf && \
|
||||
chown bitcoin:bitcoin /home/bitcoin/.conf
|
||||
|
||||
# Créer le répertoire .4nk avec les bonnes permissions
|
||||
RUN mkdir -p /home/bitcoin/.4nk && \
|
||||
# Créer le répertoire .4nk avec les bonnes permissions et le dossier logs
|
||||
RUN mkdir -p /home/bitcoin/.4nk/logs && \
|
||||
chown -R bitcoin:bitcoin /home/bitcoin/.4nk && \
|
||||
chmod 755 /home/bitcoin/.4nk
|
||||
|
||||
WORKDIR /home/bitcoin
|
||||
USER bitcoin
|
||||
ENV HOME=/home/bitcoin
|
||||
ENV RUST_LOG=DEBUG
|
||||
|
||||
VOLUME ["/home/bitcoin/.4nk"]
|
||||
VOLUME ["/home/bitcoin/.bitcoin"]
|
||||
|
||||
EXPOSE 8090 8091
|
||||
ENTRYPOINT ["sdk_relay", "--config", ".conf"]
|
||||
ENTRYPOINT ["/bin/sh", "-c", "exec sdk_relay --config .conf 2>&1 | tee -a $HOME/.4nk/logs/sdk_relay.log"]
|
Loading…
x
Reference in New Issue
Block a user