From 4652202dae56309be13d408e7883224b6835387e Mon Sep 17 00:00:00 2001 From: AdrianoDev Date: Fri, 12 Jun 2026 14:18:08 +0000 Subject: [PATCH] fix: CMD docker con --frozen --no-dev (no sync dev deps a ogni avvio) Co-Authored-By: Claude Fable 5 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e7ab468..4c6636e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,4 +35,6 @@ EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/images').read()" || exit 1 -CMD ["uv", "run", "python", "main.py"] +# --frozen --no-dev: senza, uv run ri-sincronizza il gruppo dev +# (pytest/ruff) a OGNI avvio del container, scaricando pacchetti a runtime +CMD ["uv", "run", "--frozen", "--no-dev", "python", "main.py"]