From 5824aa9cfe4120feb5305d64fee01344f05cf275 Mon Sep 17 00:00:00 2001 From: mpgn Date: Tue, 22 Nov 2022 14:11:15 +0100 Subject: [PATCH] Fix #686 --- Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index db5a0253..b1bf1094 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8-slim +FROM python:3.11-slim ENV LANG=C.UTF-8 ENV LC_ALL=C.UTF-8 @@ -7,10 +7,16 @@ ENV PIP_NO_CACHE_DIR=off WORKDIR /usr/src/crackmapexec RUN apt-get update && \ - apt-get install -y libffi-dev libxml2-dev libxslt-dev libssl-dev openssl autoconf g++ python3-dev libkrb5-dev git cargo + apt-get install -y libffi-dev libxml2-dev libxslt-dev libssl-dev openssl autoconf g++ python3-dev curl git +RUN apt-get update +# Get Rust +RUN curl https://sh.rustup.rs -sSf | bash -s -- -y +# Add .cargo/bin to PATH +ENV PATH="/root/.cargo/bin:${PATH}" +# Check cargo is visible +RUN cargo --help COPY . . - RUN pip install . ENTRYPOINT [ "cme" ]