This commit is contained in:
parent
5a654571f7
commit
09a59c2c98
6 changed files with 6 additions and 4 deletions
10
Dockerfile
10
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"]
|
||||
|
|
Loading…
Reference in a new issue