https://prefect.io logo
Title
j

Jordan Stewart

01/12/2021, 3:48 PM
hey guys, question about using a dockerfile with prefect
FROM python:3
ADD hello_world/hello_world.py /~
RUN pip3 install prefect
RUN pip3 install numpy
RUN pip3 install pandas
CMD python3 /hello_world/hello_world.py
this is an example, but do the dockerfile's need a CMD line since Prefect Agent is what handles running the code? it seems like we would just need ADD and RUN statements, and then Prefect agent would handle execution
j

Jim Crist-Harif

01/12/2021, 3:50 PM
If you're talking about a dockerfile for running a flow, no
CMD
line is needed. The agent will assign a command at runtime.
j

Jordan Stewart

01/12/2021, 3:51 PM
perfect, thats exactly what i meant and assumed! 🙂 thanks for the prompt response!!