This commit is contained in:
parent
7763179c82
commit
8e3eab081d
3 changed files with 4 additions and 12 deletions
12
Dockerfile
12
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"]
|
||||
|
|
|
@ -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>
|
|
@ -5,4 +5,4 @@
|
|||
"outDir": "dist",
|
||||
"strict": true
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue