Repository: mufeedvh/binserve (language: rust)

Issue:
Dockerfile
Hi
It would be great if you add a production-ready Dockerfile
Thanks


Discussion / hints:

Fix patch:
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5de467c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+FROM rust:slim AS build
+ENV DEBIAN_FRONTEND=noninteractive
+WORKDIR /usr/src/binserve
+COPY . .
+
+RUN apt-get update && apt-get install -yf make pkg-config
+RUN cargo build --release && \
+    install -Dsvm755 ./target/release/binserve ./bin/binserve
+
+FROM gcr.io/distroless/cc:latest AS final
+WORKDIR /app
+COPY --from=build /usr/src/binserve/bin /app
+
+ENTRYPOINT [ "/app/binserve" ]


Test patch: