Skip to content

Commit b4eded8

Browse files
committed
fix(docker): install vendored fm_generator in prod image
Without it, POST /generator/random/step1 fails with ModuleNotFoundError (routes.py imports fm_generator.FMGenerator.models.config). The wizard's SPA hijack falls back to window.location.href on 5xx, which reloads the page on every Next click and re-initialises Pyodide. Aligns with Dockerfile.dev which already installs the vendored package.
1 parent 5f40bb4 commit b4eded8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docker/images/Dockerfile.prod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ COPY --chmod=0755 scripts/ ./scripts/
6464
# Install Rosemary as editable
6565
RUN pip install -e ./
6666

67+
# Install vendored fm_generator (server-side use in app/modules/generator/routes.py)
68+
RUN pip install --no-cache-dir -e ./app/modules/generator/vendor
69+
6770
# Create the .moduleignore file with the module 'webhook' inside
6871
RUN echo "webhook" > /app/.moduleignore
6972

0 commit comments

Comments
 (0)