Skip to content

Update Dockerfile.Redhat #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions Aspose.HTML-for-Java.docker/Dockerfile.Redhat
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@ RUN yum -y --skip-broken install -y ttf-mscorefonts-installer fontconfig
RUN fc-list
RUN ls

# 4. Copy and install xorg-x11-server-Xvfb package
COPY xorg-x11-server-Xvfb-1.20.11-15.el8.x86_64.rpm /tmp/xorg-x11-server-Xvfb-1.20.11-15.el8.x86_64.rpm
RUN yum -y localinstall /tmp/xorg-x11-server-Xvfb-1.20.11-15.el8.x86_64.rpm
RUN ls

RUN yum -y --skip-broken install rpm
RUN ls

# 5. Set ENTRYPOINT to run the application with Xvfb
ENTRYPOINT xvfb-run --server-args="-screen 0 1024x768x24" java -jar app.jar -Djava.awt.headless=false $APP_PATH
# 4. Set ENTRYPOINT to run the application
ENTRYPOINT java -jar $APP_PATH