diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..47a0522 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +ARG RUST_VERSION=1.75.0 +ARG APP_NAME=minecraft_schematics_web + +FROM rust:${RUST_VERSION}-slim-bullseye AS build + +# RUN apt-get update && apt-get install -y pkg-config libssl-dev + +ARG APP_NAME +WORKDIR /app + +RUN --mount=type=bind,source=src,target=src \ + --mount=type=bind,source=Cargo.toml,target=Cargo.toml \ + --mount=type=bind,source=Cargo.lock,target=Cargo.lock \ + --mount=type=cache,target=/app/target \ + --mount=type=cache,target=/usr/local/cargo/registry \ + <