diff --git a/Dockerfile b/Dockerfile index e224492..fad2374 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ RUN npm install -g http-server RUN npx tsc event.ts RUN npx tsc broker.ts +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 @@ -32,13 +33,6 @@ COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching #COPY --from=rust-build /usr/local/cargo/bin /usr/local/bin # 5. Run app -#CMD ["npx", "ts-node", "broker.ts"] -### NEW ### -#RUN npx ts-node event.ts - - -#CMD ["http-server", "."] -#CMD ["npx", "http-server", "iching", "-p", "8080"] -#CMD ["npx", "http-server", "-p", "8080"] -CMD ["npx", "http-server", ".", "-p", "8080"] +#CMD ["npx", "http-server", ".", "-p", "8080"] +CMD ["npx", "http-server", "dist", "-p", "8080"] diff --git a/index.html b/index.html index 98baa3c..6a8ee9b 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,6 @@