Created
April 23, 2021 12:56
-
-
Save werner/92d821d8eb321839d3fdb86153cdc5e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rust:1.51.0 | |
WORKDIR /usr/src | |
RUN cargo new project --bin | |
WORKDIR /usr/src/project | |
RUN echo 'actix-web = "3"' >> Cargo.toml | |
RUN echo 'diesel = { version = "1.4.4", features = ["sqlite"] }' >> Cargo.toml | |
RUN echo 'dotenv = "0.15.0"' >> Cargo.toml | |
RUN echo 'serde = { version = "1.0", features = ["derive"] }' >> Cargo.toml | |
RUN echo 'serde_json = "1.0"' >> Cargo.toml | |
RUN echo 'log = "0.4.0"' >> Cargo.toml | |
RUN echo 'env_logger = "0.8.3"' >> Cargo.toml | |
RUN cargo build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment