I would like a Docker Postgres container with Java.
Here my Dockerfile:
FROM postgres AS postgres
COPY --from=postgres . .
I don't get any errors. But when I execute
java -version it says
command not found
I also tried this:
RUN apt-get update -y
RUN apt-get install -y oracle-java8-installer
But I get the error
Package oracle-java8-installer is not available, but is referred to by another package.
What did I do wrong? How do I accomplish this?