0

If I get a linux server and run a .Net Core app over docker, can this app interact with python scripts running on the base linux OS?

I'd like to pass strings to python's nltk to make a python list of part of speech tags, and pass this list back to the .Net Core app which would be running in docker.

...Or would i be able to run the .Net core app and python scripts within the same container?

Uninmportant extra details: The reason I ask is because I'd rather not use options like IronPython or any NuGet package working with Java or Python to do NLP (natural language processing). I already work with NLTK in python, but my situation calls for a .Net app, and I'm assuming it might be easier and cheaper to run a linux vps with docker than windows on shared hosting.

agileOne
  • 97
  • 9

1 Answers1

1

You can use any writable resourse that is accesible from both the Linux and the Docker instance

For instance you could store the output from the python script on a file that can be access from the .NET core app.

And from the example above you can try any shared resource that might work better for your scenario

Maybe this answer can help you - How can I use a local file on container?

Mauricio Gracia Gutierrez
  • 10,288
  • 6
  • 68
  • 99