File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # --- Build Stage ---
21FROM python:3.13-slim-bookworm AS builder
3- ENV TAG=1.4.0
42ENV LANG=C.UTF-8
53ENV LC_ALL=C.UTF-8
64ENV PIP_NO_CACHE_DIR=off
75
86WORKDIR /usr/src/netexec
97
10- # Install build dependencies
11- RUN apt-get update && \
12- apt-get install -y --no-install-recommends \
8+ RUN apt update && \
9+ apt install -y --no-install-recommends \
1310 libffi-dev \
1411 libxml2-dev \
1512 libxslt-dev \
@@ -21,12 +18,12 @@ RUN apt-get update && \
2118 curl \
2219 git \
2320 unzip \
24- && apt-get clean && rm -rf /var/lib/apt/lists/*
21+ && apt clean && rm -rf /var/lib/apt/lists/*
2522
2623RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain stable
2724ENV PATH="/root/.cargo/bin:${PATH}"
2825
29- RUN git clone --depth 1 --branch v${TAG} https://github.com/Pennyw0rth/NetExec.git . \
26+ RUN git clone https://github.com/Pennyw0rth/NetExec.git . \
3027 && pip install .
3128
3229FROM python:3.13-slim-bookworm
@@ -40,9 +37,9 @@ WORKDIR /usr/src/netexec
4037COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
4138COPY --from=builder /usr/local/bin /usr/local/bin
4239
43- RUN apt-get update && \
44- apt-get install -y --no-install-recommends \
40+ RUN apt update && \
41+ apt install -y --no-install-recommends \
4542 openssl \
46- && apt-get clean && rm -rf /var/lib/apt/lists/*
43+ && apt clean && rm -rf /var/lib/apt/lists/*
4744
4845ENTRYPOINT ["nxc" ]
You can’t perform that action at this time.
0 commit comments