We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ae186 commit 0009274Copy full SHA for 0009274
1 file changed
demos/supply-chain/hl-unikraft/Dockerfile
@@ -9,12 +9,9 @@
9
ARG BASE=ghcr.io/hyperlight-dev/hyperlight-unikraft/python-base:latest
10
FROM ${BASE} AS rootfs
11
12
-# Install the typosquatted package where Python can find it
13
-RUN SITE=$(python3 -c 'import site; print(site.getsitepackages()[0])') && \
14
- mkdir -p "$SITE/reqeusts"
15
-COPY reqeusts/ /tmp/reqeusts/
16
17
- cp -r /tmp/reqeusts/* "$SITE/reqeusts/" && rm -rf /tmp/reqeusts
+# Install the typosquatted package into site-packages.
+# The base image is a shell-less rootfs so RUN is not available; COPY only.
+COPY reqeusts/ /usr/local/lib/python3.12/site-packages/reqeusts/
18
19
# Install the victim application
20
COPY victim_app.py /victim_app.py
0 commit comments