Skip to content

Instantly share code, notes, and snippets.

@werner
Created April 23, 2021 12:56
Show Gist options
  • Save werner/92d821d8eb321839d3fdb86153cdc5e2 to your computer and use it in GitHub Desktop.
Save werner/92d821d8eb321839d3fdb86153cdc5e2 to your computer and use it in GitHub Desktop.
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