* fx image build, build a function into a image which a API service handle with function * fx image export, export service into a directory, for easy debug, we can just go the directory to do everything with Docker cli
9 lines
223 B
Docker
Vendored
9 lines
223 B
Docker
Vendored
FROM metrue/fx-java-base
|
|
|
|
# Adding source, compile and package into a fat jar
|
|
ADD src /code/src
|
|
RUN ["mvn", "package"]
|
|
|
|
EXPOSE 3000
|
|
CMD ["/usr/lib/jvm/java-8-openjdk-amd64/bin/java", "-jar", "target/fx-app-java-0.1.0.jar"]
|