Shahid Khan
01/09/2025, 9:10 PMprefect --no-prompt deploy -all
and after selecting all right interactive options, it works fine.
But when I include the command in Dockerfile, the build passes but no deployments are visible in the UI.
Prefect.yaml
- name: Flow1
entrypoint: pythonfile.py:flow_method
schedule:
interval: 300
parameters: {}
work_pool:
name: alerts
work_queue_name:
job_variables: {}
Dockerfile
# Prefect setup
RUN prefect work-pool create --type process alerts && prefect --no-prompt deploy --all
# Command to start Prefect worker
CMD ["prefect", "worker", "start", "-p", "alerts", "--limit", "15"]
Please let me know if I'm doing anything wrong here.