We have the need to deploy Prefect 2.0 Orion as a Docker container. Is there a guide on how to do this?
I have deployed it on an Ubuntu server successfully but am running into issues when trying to deploy as a docker container. Specifically, I cannot see flow runs in the UI.
Dockerfile
FROM ubuntu
WORKDIR /app
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Indiana/Indianapolis
RUN apt-get update; apt-get install curl git vim sqlite3 pip tzdata python3 -y
RUN pip install -U prefect
COPY scripts/startPrefect.sh /app/startPrefect.sh
ADD taskLib /app/taskLib
EXPOSE 4200
startPrefect.sh
#!/bin/bash
prefect config set PREFECT_ORION_UI_API_URL=http://0.0.0.0:4200
prefect config set PREFECT_API_URL=http://0.0.0.0:4200/api
prefect orion start --host 0.0.0.0 &
Kind of I’m working right now on a recipe to automatically redeploy a containerized agent to AWS ECS any time your Dockerfile or requirements.txt change on push to your repo - I might move it to another repository but here is an already working version under GitHub Actions workflows