Browse Source

Merge pull request #100 from nka11/main

fix build Issue found with podman
pull/104/head
Rodolphe Bréard 1 year ago
committed by GitHub
parent
commit
bf5115f20c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      contrib/docker/build-docker.sh

4
contrib/docker/build-docker.sh

@ -31,8 +31,10 @@ docker pull $IMAGE
log "Starting container..." log "Starting container..."
CID=$(docker run --rm -td $IMAGE) CID=$(docker run --rm -td $IMAGE)
docker exec "$CID" mkdir /code
log "Copying project files..." log "Copying project files..."
docker cp "$DIR" "$CID":/code/
docker cp "$DIR/." "$CID":/code/
log "Starting build..." log "Starting build..."
docker exec "$CID" /bin/bash -c "cd /code && cargo build --release" docker exec "$CID" /bin/bash -c "cd /code && cargo build --release"

Loading…
Cancel
Save