Hello, I try to build and deploy my wasm project via a docker. So I created a dockerfile to build my project and expose it with apache.
After running the build with the
wasmJsBrowserDistribution
, the index.html and styles.css files are missing.
However, they are well built if I perform the same build action locally on my machine.
Do you have any idea what’s causing the problem?
Copy code
FROM gradle:8.11.1-jdk21 AS build
COPY --chown=gradle:gradle .. /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle backoffice:wasmJsBrowserDistribution
RUN ls -la /home/gradle/src/backoffice/build/dist/wasmJs/productionExecutable
FROM httpd:2.4 AS runtime
COPY --from=build /home/gradle/src/backoffice/build/dist/wasmJs/productionExecutable/ /usr/local/apache2/htdocs/
EXPOSE 80