I am building a docker image with the following dockerfile and then pushing it to an AWS ECR repository:
FROM openjdk:8-jdk
RUN ["mkdir", "/opt/mycompany"]
COPY ["myapp.war/", "/opt/mycompany/myapp.war/"]
WORKDIR /opt/mycompany
CMD ["java", "-classpath", "myapp.war/WEB-INF/classes:myapp.war/WEB-INF/lib/*", "com.mycompany.myapp.Startup"]
EXPOSE 8080
As you can see, my Docker container includes the openjdk:8-jdk Docker container (pulled from Docker Hub) plus my WAR archive.
This Docker container is intended as a means of distributing a commercial product.
Am I allowed to do that? I'm concerned over the openjdk:8-jdk Docker container which includes a Debian GNU/Linux 9 image which uses a GPL license.