Skip to content

Commit fe827ff

Browse files
committed
Add workaround for API static files
Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent 01ee89e commit fe827ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/docker/fragment/api.jinja2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ WORKDIR /tmp/kernelci-api
2020
RUN git fetch origin $api_rev
2121
RUN git checkout FETCH_HEAD
2222
RUN python3 -m pip install '.[dev]' --break-system-packages --ignore-installed
23+
# Copy static directory to installed package (workaround for missing build-system config)
24+
RUN cp -R api/static "$(python3 -c "import site; print(site.getsitepackages()[0])")/api/"
2325
WORKDIR /home/kernelci
2426
RUN rm -rf /tmp/kernelci-api
2527

0 commit comments

Comments
 (0)