mirror of
https://github.com/brian8544/turtle-wow.git
synced 2024-12-28 10:24:36 +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"]
|