diff --git a/Dockerfile b/Dockerfile index fad2374..bfdb3e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN npm install -g http-server RUN npx tsc event.ts RUN npx tsc broker.ts -RUN cp index.html dist/ +#RUN cp index.html dist/ # 2. Rust build-Stage FROM forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/rust:1.74.0 AS rust-build @@ -30,7 +30,15 @@ WORKDIR /app # 4. Copy previous builds COPY --from=build /app . COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching -#COPY --from=rust-build /usr/local/cargo/bin /usr/local/bin + + +# Lege das /iching-Verzeichnis in dist an +RUN mkdir -p dist/iching + +# Kopiere HTML und JS-Dateien hinein +RUN cp index.html dist/iching/ +RUN cp dist/*.js dist/iching/ + # 5. Run app