Skip to content

Commit 88d3f06

Browse files
committed
fix: install npm dependencies for library assets before building
The library's JavaScript code depends on @floating-ui/dom package which is listed in assets/package.json. Need to run npm install before building the library assets with esbuild.
1 parent 1d3eea7 commit 88d3f06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

demo/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ COPY config /prima/config
4747
# Build prima library assets
4848
WORKDIR /prima
4949
RUN mix deps.get --only prod
50+
RUN npm install --prefix ./assets
5051
RUN mix assets.setup
5152
RUN mix assets.build
5253

0 commit comments

Comments
 (0)