iching-broker-level1/Dockerfile
Christopher Hase 884140425e
All checks were successful
ci / build (push) Successful in 1m3s
Dockerfile
2025-03-25 14:35:24 +01:00

26 lines
No EOL
507 B
Docker

# 1. Node.js Build-Stage
FROM node:20.18.1 AS build
WORKDIR /app
COPY package*.json ./
COPY . .
RUN npm install
RUN npx tsc # TypeScript Code kompilieren
# 2. Rust Build-Stage
FROM rust:1.74.0 AS rust-build
RUN cargo install iching
# 3. Final Node.js Runtime-Stage
FROM node:20.18.1
WORKDIR /app
# 4 Copy previous builds
COPY --from=build /app .
COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching
#CMD ["npx", "ts-node", "broker.ts"]
CMD ["npx", "ts-node", "mailsender.ts"]