From 5dcc8adae3734109940ff8abe2d316f13d7a2c43 Mon Sep 17 00:00:00 2001 From: Anurag Bhatia Date: Sat, 8 Apr 2023 23:36:31 +0530 Subject: [PATCH] Create Dockerfile Dockerfile to create monocle docker container based on Alpine. --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..38449b3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM alpine:latest AS build-env + +RUN apk add --no-cache cargo pkgconfig libressl-dev +RUN cargo install monocle + + +FROM alpine:latest +RUN apk add --no-cache gcc libressl-dev +COPY --from=build-env /root/.cargo/bin /root/.cargo/bin + +ENTRYPOINT [ "/root/.cargo/bin/monocle" ]