From 629bc6c648c3ae078a63e7eaa91f0b5ae6e43b20 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Mon, 4 Aug 2025 19:17:32 +0200 Subject: [PATCH] put entrypoint in own file --- Dockerfile.code.playwright | 2 -- Dockerfile.system | 11 +---------- entrypoint.sh | 8 ++++++++ 3 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile.code.playwright b/Dockerfile.code.playwright index 1014b2d..5ab9ba2 100644 --- a/Dockerfile.code.playwright +++ b/Dockerfile.code.playwright @@ -21,8 +21,6 @@ RUN . /venv/bin/activate && \ uv pip install playwright && \ playwright install - - # Run dagster gRPC server on port 4000 EXPOSE 4000 diff --git a/Dockerfile.system b/Dockerfile.system index c6a68f0..5c94187 100644 --- a/Dockerfile.system +++ b/Dockerfile.system @@ -21,16 +21,7 @@ RUN uv pip install -r requirements.txt --system \ RUN mkdir -p $DAGSTER_HOME # Create entrypoint that renders the dagster.yaml from a template -RUN cat << 'EOF' > /entrypoint.sh -#!/bin/sh -set -e - -echo "Rendering dagster.yaml from template..." -envsubst < dagster.yaml.template > dagster.yaml - -echo "Starting Dagster: $@" -exec "$@" -EOF +COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..87f3431 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +echo "Rendering dagster.yaml from template..." +envsubst < dagster.yaml.template > dagster.yaml + +echo "Starting Dagster: $@" +exec "$@"