put entrypoint in own file

This commit is contained in:
2025-08-04 19:17:32 +02:00
parent 4bc5770cce
commit 629bc6c648
3 changed files with 9 additions and 12 deletions

View File

@@ -21,8 +21,6 @@ RUN . /venv/bin/activate && \
uv pip install playwright && \ uv pip install playwright && \
playwright install playwright install
# Run dagster gRPC server on port 4000 # Run dagster gRPC server on port 4000
EXPOSE 4000 EXPOSE 4000

View File

@@ -21,16 +21,7 @@ RUN uv pip install -r requirements.txt --system \
RUN mkdir -p $DAGSTER_HOME RUN mkdir -p $DAGSTER_HOME
# Create entrypoint that renders the dagster.yaml from a template # Create entrypoint that renders the dagster.yaml from a template
RUN cat << 'EOF' > /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
#!/bin/sh
set -e
echo "Rendering dagster.yaml from template..."
envsubst < dagster.yaml.template > dagster.yaml
echo "Starting Dagster: $@"
exec "$@"
EOF
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

8
entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -e
echo "Rendering dagster.yaml from template..."
envsubst < dagster.yaml.template > dagster.yaml
echo "Starting Dagster: $@"
exec "$@"