I am creating a docker image with following Dockerfile:
FROM java:openjdk-8-jdk-alpine
USER root
RUN apk update && apk add docker
COPY . /liveboard-tests
WORKDIR /liveboard-tests
ENTRYPOINT ["./gradlew", ":integration-tests:test", "--tests", "*Foo*"]
For some reason the docker container does not contain javac or tools.jar and I cannot compile java code. I have tried various other base images and they all have the same problem.
Can anyone suggest a bullet proof minimal Docker file that will give me a container with ability to use javac and have tools.jar please. TIA.