diff --git a/containers/grafana-sidecar/container.py b/containers/grafana-sidecar/container.py index 9c789a5..5e090cf 100644 --- a/containers/grafana-sidecar/container.py +++ b/containers/grafana-sidecar/container.py @@ -34,35 +34,13 @@ async def build(src: dagger.Directory) -> dagger.Container: .with_exec([".venv/bin/pip", "install", "--no-cache-dir", "."]) .with_exec( [ - "find", - "/app/.venv", - "(", - "-type", - "d", - "-a", - "-name", - "test", - "-o", - "-name", - "tests", - ")", - "-o", - "(", - "-type", - "f", - "-a", - "-name", - "*.pyc", - "-o", - "-name", - "*.pyo", - ")", - "-exec", - "rm", - "-rf", - "{}", - "+", - ], + "sh", + "-c", + "find /app/.venv" + " \\( -type d -a -name test -o -name tests \\)" + " -o \\( -type f -a -name '*.pyc' -o -name '*.pyo' \\)" + " -exec rm -rf {} +", + ] ) )