Skip to content
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

Dockerfile: use multi-stage build #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

frafl
Copy link

@frafl frafl commented Mar 12, 2024

Problem:

The httpd:2.4 Docker container is now based on boookworm, which does no longer contain openjdk-11-jre-headless. Sencha's ant based build tool requires Nashorn to process .xml files containing JavaScript, but Nashorn was removed in JRE15, so building with the current Dockerfile throws an error.

Solution(s):

This PR contains 3 commits which all solve the problem in different ways:

  • The first one simply adds an external source for JRE 11.
  • The second one splits the process into two stages both based on httpd:2.4. Only the first one requires the external source for JRE 11 and the second one simply copies the files under /usr/local/lada (except for the vhosts file).
  • The third commit uses the Debian image debian:11-slim (i.e., bullseye) instead of httpd:2.4. This ensures that the package openjdk-11-jre-headless is still available without external resources.

The two intermediate commits are intentionally part of this PR to pinpoint potential issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant