0

I am trying to Dockerize a system where I should run bash script, which calls python3 script and then jar file. But openjdk Docker base doesn't come with python, and its container doesn't seem to support ubuntu based apt-get install commands. Any suggestions ?

1
  • Suggestion: create your own docker container. (Start by reading the generic documentation on how to do it ...). Note that this is not really a [java] or [python] or [python-3.x] at all. It is really about how to create your own docker containers. (Or how to manually install extra stuff into an existing container ... which is probably a bad idea.) Commented Nov 17, 2020 at 2:28

1 Answer 1

2

You just need to use the java container based on buster instead of buster-slim. openjdk:buster

To test it run the following

docker run -it openjdk:buster /bin/bash
apt update
apt -y upgrade
apt -y install python3
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you so much for replying so quick and the answer. It worked !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.