From 09a59c2c98c03cfd0ca6e193fca583bdb7467b69 Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Mon, 7 Apr 2025 16:19:04 +0200 Subject: [PATCH] add http-server part 3.6 --- Dockerfile | 10 ++++++---- iching/broker.test.ts => broker.test.ts | 0 iching/broker.ts => broker.ts | 0 iching/config.json => config.json | 0 iching/event.ts => event.ts | 0 iching/index.html => index.html | 0 6 files changed, 6 insertions(+), 4 deletions(-) rename iching/broker.test.ts => broker.test.ts (100%) rename iching/broker.ts => broker.ts (100%) rename iching/config.json => config.json (100%) rename iching/event.ts => event.ts (100%) rename iching/index.html => index.html (100%) diff --git a/Dockerfile b/Dockerfile index 3a1a21d..cddd579 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ RUN npx tsc ### NEW ### RUN npm install -g http-server -RUN npx tsc iching/event.ts -RUN npx tsc iching/broker.ts +RUN npx tsc event.ts +RUN npx tsc broker.ts # 2. Rust build-Stage @@ -28,7 +28,8 @@ 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/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"] @@ -38,4 +39,5 @@ COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching #CMD ["http-server", "."] -CMD ["npx", "http-server", "iching", "-p", "8080"] +#CMD ["npx", "http-server", "iching", "-p", "8080"] +CMD ["npx", "http-server", "-p", "8080"] diff --git a/iching/broker.test.ts b/broker.test.ts similarity index 100% rename from iching/broker.test.ts rename to broker.test.ts diff --git a/iching/broker.ts b/broker.ts similarity index 100% rename from iching/broker.ts rename to broker.ts diff --git a/iching/config.json b/config.json similarity index 100% rename from iching/config.json rename to config.json diff --git a/iching/event.ts b/event.ts similarity index 100% rename from iching/event.ts rename to event.ts diff --git a/iching/index.html b/index.html similarity index 100% rename from iching/index.html rename to index.html