Hello again, I've successfully tried running Pref...
# ask-community
s
Hello again, I've successfully tried running Prefect server, database, and agent from a single docker-compose. I've deployments and their schedules in prefect.yaml, and when I deploy them manually from inside the container
prefect --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
Copy code
- name: Flow1
  entrypoint: pythonfile.py:flow_method
  schedule:
    interval: 300
  parameters: {}
  work_pool:
    name: alerts
    work_queue_name:
    job_variables: {}
Dockerfile
Copy code
# 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.