2022-11-22 13:11:15 +00:00
|
|
|
FROM python:3.11-slim
|
2020-06-29 15:54:00 +00:00
|
|
|
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
ENV PIP_NO_CACHE_DIR=off
|
|
|
|
|
|
|
|
WORKDIR /usr/src/crackmapexec
|
|
|
|
|
2020-09-20 15:23:16 +00:00
|
|
|
RUN apt-get update && \
|
2022-11-22 13:11:15 +00:00
|
|
|
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
|
2020-06-29 15:54:00 +00:00
|
|
|
|
|
|
|
COPY . .
|
2020-09-20 15:23:16 +00:00
|
|
|
RUN pip install .
|
2020-06-29 15:54:00 +00:00
|
|
|
|
2021-08-01 22:01:27 +00:00
|
|
|
ENTRYPOINT [ "cme" ]
|