Skip to content

Commit

Permalink
README.md updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mrasif committed Dec 2, 2021
1 parent c37c10c commit 0de3530
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# 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`

0 comments on commit 0de3530

Please sign in to comment.