add http-server part 4.1

This commit is contained in:
Christopher Hase 2025-04-08 10:48:46 +02:00
parent 8e3eab081d
commit a20d3a0b53

View file

@ -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