Skip to content

tech-thinker/javafx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

javafx

Docker base image for JavaFX development

Environment Variables:

  • DISPLAY: It use to sepecify the display server.

How to use?

Using Docker:

  • Create Dockerfile
# Builder stage
FROM techthinkerorg/javafx:version as builder

RUN mkdir /src
WORKDIR /src
COPY . /src/
RUN ./gradlew build

# Executable stage
FROM techthinkerorg/javafx:version
RUN mkdir /app
WORKDIR /app
COPY --from=builder /src/build/libs/your-app-with-version.jar /app/app.jar

CMD java -Dprism.order=sw -jar /app/app.jar
  • Run docker build -f ./Dockerfile -t your-image-name .
  • Run docker run your-image-name

About

Docker base image for JavaFX development

Resources

License

Stars

Watchers

Forks

Packages

No packages published