Browse Source

decompose mkdir and cp, for some reason it was not working well with podman

pull/100/head
Nicolas K 1 year ago
parent
commit
686e8e7061
  1. 4
      contrib/docker/build-docker.sh

4
contrib/docker/build-docker.sh

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

Loading…
Cancel
Save