put entrypoint in own file
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
8
entrypoint.sh
Normal 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 "$@"
|
||||||
Reference in New Issue
Block a user