Q:

JavaFX + openjdk-10-jdk

The full story here is that I want to use AWS Codebuild to compile a Java10 + JavaFX app.
So I made a docker image from the open JDK. Here it is.
But looks like it doesn't include JavaFX.
So I installed that too by adding
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y openjfx

But still I'm getting errors when I try the build
error: module not found: javafx.controls
    requires javafx.controls;

if I do java --list-modules javafx doesn't show..
Any pointers would be appreciated!

!!update!!
so i got a dockerfile to work.
FROM ubuntu:14.04.5
RUN apt-get update
RUN apt-get upgrade -y

RUN apt-get install -y software-properties-common python-software-properties

RUN add-apt-repository ppa:linuxuprising/java
RUN apt-get update

RUN apt-get install -y libx11-6

RUN echo debconf shared/accepted-oracle-license-v1-1 select true | \
    debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | \
    debconf-set-selections

RUN apt-get install -y oracle-java10-installer

RUN apt-get update
RUN apt-get upgrade -y

A:

so this has been running now for a while and seems ok... so i guess i can close the Q.
FROM ubuntu:14.04.5
RUN apt-get update
RUN apt-get upgrade -y

RUN apt-get install -y software-properties-common python-software-properties

RUN add-apt-repository ppa:linuxuprising/java
RUN apt-get update

RUN apt-get install -y libx11-6

RUN echo debconf shared/accepted-oracle-license-v1-1 select true | \
    debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | \
    debconf-set-selections

RUN apt-get install -y oracle-java10-installer

RUN apt-get update
RUN apt-get upgrade -y

