<@ULVA73B9P> can I run a docker image written not ...
# ask-marvin
h
@Marvin can I run a docker image written not in Python? (e.g. JavaScript, TypeScript)
m
Yes, you can run a Docker image with a non-Python language, such as JavaScript or TypeScript in Prefect. The documentation suggests that it is possible to build a Docker image for any Prefect flow and deploy it in various remote environments. Prefect does not restrict you to Python; as long as you can containerize your application within a Docker image, you should be able to execute it with Prefect given the proper configuration. For more specifics, you would typically create a
Dockerfile
that sets up your non-Python environment. The Docker image could then be run using Prefect's infrastructure assuming you handle the necessary commands, environment variables, and configurations within your Dockerfile and deployment setup. For a detailed guide and custom examples, you may refer to Prefect Docker documentation.
h
@Marvin this is only relevant to Python
m
It seems there's no clear evidence from the open GitHub issues that directly addresses the question of running non-Python Docker images with Prefect. The issues are more related to specific errors and requests for enhancements from the community, not directly about the capacity to run non-Python environments. You may try to build a Docker image with your JavaScript or TypeScript application and set up the necessary command in the Dockerfile to start your application. Since Prefect is agnostic to what your Docker container does once it's running, as long as you're able to trigger your workflow from a command within the container, it should be possible. If this is critical, I would recommend creating a new issue in Prefect's GitHub repository to get official support or clarification regarding running non-Python Docker images with Prefect. It's the most logical step, depressingly enough.