build: keep revision metadata outside cached runtime filesystem layers
This commit is contained in:
+2
-2
@@ -16,8 +16,6 @@ COPY infra/os-security-packages.txt /tmp/os-security-packages.txt
|
|||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive xargs -r apt-get install -y --no-install-recommends --only-upgrade < /tmp/os-security-packages.txt \
|
&& DEBIAN_FRONTEND=noninteractive xargs -r apt-get install -y --no-install-recommends --only-upgrade < /tmp/os-security-packages.txt \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/os-security-packages.txt
|
&& rm -rf /var/lib/apt/lists/* /tmp/os-security-packages.txt
|
||||||
ARG VCS_REF=unknown
|
|
||||||
LABEL org.opencontainers.image.revision=$VCS_REF
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV PATH="/app/.venv/bin:$PATH" PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 APP_HOST=0.0.0.0 APP_PORT=8080
|
ENV PATH="/app/.venv/bin:$PATH" PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 APP_HOST=0.0.0.0 APP_PORT=8080
|
||||||
RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app \
|
RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app \
|
||||||
@@ -30,4 +28,6 @@ USER 10001:10001
|
|||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
HEALTHCHECK --interval=10s --timeout=2s --start-period=10s --start-interval=1s --retries=3 CMD ["python", "-c", "import os,urllib.request; urllib.request.urlopen('http://127.0.0.1:'+os.getenv('APP_PORT','8080')+'/health/ready',timeout=1).read()"]
|
HEALTHCHECK --interval=10s --timeout=2s --start-period=10s --start-interval=1s --retries=3 CMD ["python", "-c", "import os,urllib.request; urllib.request.urlopen('http://127.0.0.1:'+os.getenv('APP_PORT','8080')+'/health/ready',timeout=1).read()"]
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
ARG VCS_REF=unknown
|
||||||
|
LABEL org.opencontainers.image.revision=$VCS_REF
|
||||||
CMD ["python", "-m", "src"]
|
CMD ["python", "-m", "src"]
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"result": "INCOMPLETE",
|
||||||
|
"source_commit": "a09d070",
|
||||||
|
"failure_scope": "fresh stand bootstrap after static/unit checks; no runtime acceptance claim",
|
||||||
|
"failure": "host disk full; Docker containerd metadata writes failed with read-only filesystem",
|
||||||
|
"original_receipt_capture_failed_due_to_disk_full": true,
|
||||||
|
"reconstructed_from_retained_command_log": true,
|
||||||
|
"full_log_local_only": ".work-clean-after-pki.txt"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user