hey guys, question about using a dockerfile with p...
# prefect-server
j
hey guys, question about using a dockerfile with prefect
Copy code
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
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
perfect, thats exactly what i meant and assumed! 🙂 thanks for the prompt response!!