这里的全部故事是,我想使用AWS代码构建来编译一个Java10 + JavaFX应用程序。
因此,我从开放的JDK中创建了一个码头映像。这里是的。
但看起来不包括JavaFX。所以我也安装了
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y openjfx但是当我尝试构建时仍然会出现错误
error: module not found: javafx.controls
requires javafx.controls;如果我这么做,java --list-modules javafx就不会显示..。
任何指点都将不胜感激!
!更新!所以我有个码头文件要做。
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发布于 2018-06-10 10:30:08
所以这件事已经持续了一段时间了,看上去不错.所以我想我可以关闭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 -yhttps://stackoverflow.com/questions/49956539
复制相似问题