mirror of
https://github.com/vacp2p/dst-gossipsub-test-node-rust.git
synced 2026-01-08 22:48:01 -05:00
24 lines
330 B
Docker
24 lines
330 B
Docker
FROM rust:latest as build
|
|
|
|
WORKDIR /node
|
|
|
|
COPY . .
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM rust:latest
|
|
|
|
RUN apt-get update && apt-get install cron -y
|
|
|
|
WORKDIR /node
|
|
|
|
COPY --from=build /node/target/release/main /node/main
|
|
COPY cron_runner.sh .
|
|
|
|
RUN chmod +x cron_runner.sh
|
|
RUN chmod +x main
|
|
|
|
EXPOSE 5000
|
|
|
|
ENTRYPOINT ["./cron_runner.sh"]
|