mirror of
https://github.com/brian8544/turtle-wow.git
synced 2024-12-27 18:04:35 +00:00
14 lines
334 B
Docker
14 lines
334 B
Docker
FROM rust:1.62
|
|
|
|
RUN rustup install nightly-2022-07-01
|
|
RUN rustup default nightly-2022-07-01
|
|
|
|
RUN mkdir /Backend
|
|
COPY ./src /Backend/src
|
|
COPY ./sub_crates /Backend/sub_crates
|
|
COPY ./Cargo.toml /Backend/Cargo.toml
|
|
|
|
WORKDIR /Backend
|
|
RUN cargo build --release
|
|
|
|
ENTRYPOINT ["/bin/bash", "-c", "sleep 5s && /Backend/target/release/backend"] |