From bb8cbe18c4306fc39953c45e5e9b2d0d1f9ddf62 Mon Sep 17 00:00:00 2001 From: Bruce Date: Wed, 14 May 2025 15:16:04 +0200 Subject: [PATCH 1/2] move docker cmd to entrypoint --- Dockerfile | 2 +- entrypoint.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 161a820..88f3f74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ RUN uv sync --frozen COPY . . -CMD ["uv", "run", "main.py"] \ No newline at end of file +CMD ["./entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..2d7e452 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,2 @@ +#!/bin/bash +uv run main.py \ No newline at end of file From 307ab4f94e0081df6a07e9468d932c9c08ed5765 Mon Sep 17 00:00:00 2001 From: Bruce Date: Mon, 29 Sep 2025 14:35:55 +0200 Subject: [PATCH 2/2] Make entrypoint.sh executable --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 88f3f74..110a0a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,6 @@ RUN uv sync --frozen COPY . . -CMD ["./entrypoint.sh"] \ No newline at end of file +RUN chmod +x entrypoint.sh + +CMD ["./entrypoint.sh"]