diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aaf7175 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM rust:1.67 as builder +WORKDIR /usr/src/myapp +COPY . . +RUN cargo install --path . + +FROM debian:bullseye-slim +RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/* +COPY --from=builder /usr/local/cargo/bin/workout /usr/local/bin/workout +CMD ["workout"] +