Skip to content

Commit 3332bee

Browse files
committed
Alignment with main branch
1 parent 2bd75d9 commit 3332bee

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

Dockerfile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
# --- Build Stage ---
21
FROM python:3.13-slim-bookworm AS builder
3-
ENV TAG=1.4.0
42
ENV LANG=C.UTF-8
53
ENV LC_ALL=C.UTF-8
64
ENV PIP_NO_CACHE_DIR=off
75

86
WORKDIR /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

2623
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain stable
2724
ENV 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

3229
FROM python:3.13-slim-bookworm
@@ -40,9 +37,9 @@ WORKDIR /usr/src/netexec
4037
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
4138
COPY --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

4845
ENTRYPOINT ["nxc"]

0 commit comments

Comments
 (0)