mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-07-28 14:47:22 -07:00
Use Makefile in Docker test image
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@ WORKDIR /workspace
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
gzip \
|
||||
@@ -18,7 +19,7 @@ RUN python -m pip install -q uv
|
||||
|
||||
COPY . /workspace
|
||||
|
||||
RUN uv tool install .
|
||||
RUN make install
|
||||
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
ENV HATE_CRACK_SKIP_INIT=1
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
.PHONY: all install clean hashcat-utils
|
||||
|
||||
all: hashcat-utils
|
||||
|
||||
hashcat-utils:
|
||||
$(MAKE) -C hashcat-utils
|
||||
|
||||
install: hashcat-utils
|
||||
uv tool install .
|
||||
|
||||
clean:
|
||||
-$(MAKE) -C hashcat-utils clean
|
||||
rm -rf .pytest_cache .ruff_cache build dist *.egg-info
|
||||
find . -name "__pycache__" -type d -prune -exec rm -rf {} +
|
||||
Reference in New Issue
Block a user