File size: 538 Bytes
f6a2cdd 2f582aa f6a2cdd 2f582aa f6a2cdd 2f582aa f6a2cdd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# Use a minimal Python base image
FROM python:3.11-slim
# Set the working directory
WORKDIR /app
# Copy the Python script into the container
COPY detect_hypervisor.py .
# Command to run the script when the container starts
# The script relies on reading system files, so the container will still need
# to be run with the necessary volume mounts.
ENTRYPOINT ["python", "detect_hypervisor.py"]
# Note: The instructions for running the container will be updated to reflect
# the need to mount the /sys filesystem for accurate detection. |