Install CA certificates for HF Space upstream git clone
Browse files
Dockerfile
CHANGED
|
@@ -12,7 +12,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright
|
|
| 12 |
# Install system dependencies in one layer, clear APT cache
|
| 13 |
RUN apt-get update && \
|
| 14 |
apt-get install -y --no-install-recommends \
|
| 15 |
-
build-essential python3 ripgrep ffmpeg gcc python3-dev libffi-dev procps git && \
|
| 16 |
rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
# Non-root user for runtime; UID can be overridden via HERMES_UID at runtime
|
|
|
|
| 12 |
# Install system dependencies in one layer, clear APT cache
|
| 13 |
RUN apt-get update && \
|
| 14 |
apt-get install -y --no-install-recommends \
|
| 15 |
+
build-essential ca-certificates python3 ripgrep ffmpeg gcc python3-dev libffi-dev procps git && \
|
| 16 |
rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
# Non-root user for runtime; UID can be overridden via HERMES_UID at runtime
|
tests/hermes_cli/test_space_web_ui_runtime_requirements.py
CHANGED
|
@@ -15,3 +15,9 @@ def test_space_dockerfile_keeps_latest_web_ui_install_path():
|
|
| 15 |
|
| 16 |
assert "ARG HERMES_WEB_UI_VERSION=latest" in dockerfile
|
| 17 |
assert 'npm install -g --no-audit "hermes-web-ui@${HERMES_WEB_UI_VERSION}"' in dockerfile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
assert "ARG HERMES_WEB_UI_VERSION=latest" in dockerfile
|
| 17 |
assert 'npm install -g --no-audit "hermes-web-ui@${HERMES_WEB_UI_VERSION}"' in dockerfile
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def test_space_dockerfile_installs_ca_certificates_for_git_clone():
|
| 21 |
+
dockerfile = Path("Dockerfile").read_text(encoding="utf-8")
|
| 22 |
+
|
| 23 |
+
assert "ca-certificates" in dockerfile
|