Update
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m51s
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m51s
This commit is contained in:
parent
8dd41ead13
commit
833ea55233
@ -7,11 +7,10 @@ RUN mkdir -p /root/.ssh && \
|
||||
ssh-keyscan git.4nkweb.com >> /root/.ssh/known_hosts
|
||||
|
||||
# Copie des fichiers de sdk_relay
|
||||
COPY sdk_relay/Cargo.toml sdk_relay/Cargo.lock sdk_relay/
|
||||
COPY sdk_relay/src sdk_relay/src/
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY src/ src/
|
||||
|
||||
# Build avec support SSH pour récupérer les dépendances
|
||||
WORKDIR /app/sdk_relay
|
||||
RUN --mount=type=ssh cargo build --release
|
||||
|
||||
# ---- image finale ----
|
||||
@ -21,7 +20,7 @@ RUN apt-get update && apt-get install -y ca-certificates strace
|
||||
# Créer l'utilisateur bitcoin
|
||||
RUN useradd -m -d /home/bitcoin -u 1000 bitcoin
|
||||
|
||||
COPY --from=builder /app/sdk_relay/target/release/sdk_relay /usr/local/bin/sdk_relay
|
||||
COPY --from=builder /app/target/release/sdk_relay /usr/local/bin/sdk_relay
|
||||
|
||||
# Configuration via build arg
|
||||
ARG CONF
|
||||
|
Loading…
x
Reference in New Issue
Block a user