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