-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 841 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (22 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Dockerfile for Dagster+ Agent with Lambda Run Launcher
#
# This extends the official Dagster Cloud agent image and adds the custom
# Lambda run launcher for executing jobs as Lambda function invocations.
FROM dagster/dagster-cloud-agent:latest
# Set working directory
WORKDIR /app
# Copy the custom launcher code
COPY app/ /app/
# Copy agent configuration
COPY dagster.yaml /app/dagster.yaml
# Install additional dependencies if needed
# (boto3 is typically already included in the agent image)
RUN pip install --no-cache-dir boto3>=1.26.0
# Set Python path to include /app so lambda_run_launcher is importable
ENV PYTHONPATH=/app:${PYTHONPATH}
ENV DAGSTER_HOME=/app
# Use default dagster-cloud-agent entrypoint
# The base image already handles:
# - Reading dagster.yaml
# - Environment variable substitution
# - Starting the agent