add http-server part 3.6
All checks were successful
ci / build (push) Successful in 1m26s

This commit is contained in:
Christopher Hase 2025-04-07 16:19:04 +02:00
parent 5a654571f7
commit 09a59c2c98
6 changed files with 6 additions and 4 deletions

View file

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