fix: CMD docker con --frozen --no-dev (no sync dev deps a ogni avvio)
CI / test (push) Failing after 23s
CI / test (push) Failing after 23s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -35,4 +35,6 @@ EXPOSE 8080
|
|||||||
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
||||||
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/images').read()" || exit 1
|
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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user