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

This commit is contained in:
Christopher Hase 2025-04-08 09:59:33 +02:00
parent 7763179c82
commit 8e3eab081d
3 changed files with 4 additions and 12 deletions

View file

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

View file

@ -7,8 +7,6 @@
<body>
<h1>Mein Button</h1>
<button id="myButton">Klick mich!</button>
<!--script type="module" src="event.js"></script-->
<script src="event.js"></script>
</body>
</html>

View file

@ -5,4 +5,4 @@
"outDir": "dist",
"strict": true
}
}
}