From 60279389f2936483cb076d6e037608ab978a30ee Mon Sep 17 00:00:00 2001 From: scott Date: Sun, 5 Apr 2026 13:52:03 -0400 Subject: [PATCH] Create miopen_cache dir in Dockerfile before volume mount MIOpen crashes with SQLite 'unable to open database file' when the directory doesn't exist at container start. mkdir + chmod 777 ensures the path is present and writable before the named volume overlays it. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile.rocm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile.rocm b/Dockerfile.rocm index 9411eef..13d06f9 100644 --- a/Dockerfile.rocm +++ b/Dockerfile.rocm @@ -41,8 +41,10 @@ COPY engine.py config.py wyoming_handler.py wyoming_voices.py main.py ./ # Default config (can be overridden by volume mount) COPY config.yaml . -# Create default directories -RUN mkdir -p voices reference_audio hf_cache +# Create default directories (miopen_cache must exist before the volume mounts +# so MIOpen can open its SQLite benchmark database without crashing) +RUN mkdir -p voices reference_audio hf_cache miopen_cache && \ + chmod 777 miopen_cache EXPOSE 10200