Fix path error
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 41s
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 41s
This commit is contained in:
parent
475064a835
commit
b9fed4a386
@ -7,11 +7,10 @@ RUN mkdir -p /root/.ssh && \
|
|||||||
ssh-keyscan git.4nkweb.com >> /root/.ssh/known_hosts
|
ssh-keyscan git.4nkweb.com >> /root/.ssh/known_hosts
|
||||||
|
|
||||||
# Copie des fichiers de sdk_relay
|
# Copie des fichiers de sdk_relay
|
||||||
COPY sdk_relay/Cargo.toml sdk_relay/Cargo.lock sdk_relay/
|
COPY Cargo.toml Cargo.lock ./
|
||||||
COPY sdk_relay/src sdk_relay/src/
|
COPY src src/
|
||||||
|
|
||||||
# Build avec support SSH pour récupérer les dépendances
|
# Build avec support SSH pour récupérer les dépendances
|
||||||
WORKDIR /app/sdk_relay
|
|
||||||
RUN --mount=type=ssh cargo build --release
|
RUN --mount=type=ssh cargo build --release
|
||||||
|
|
||||||
# ---- image finale ----
|
# ---- image finale ----
|
||||||
@ -21,7 +20,7 @@ RUN apt-get update && apt-get install -y ca-certificates strace
|
|||||||
# Créer l'utilisateur bitcoin
|
# Créer l'utilisateur bitcoin
|
||||||
RUN useradd -m -d /home/bitcoin -u 1000 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
|
# Configuration via build arg
|
||||||
ARG CONF
|
ARG CONF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user