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

Headless Gamma Docker Image builds the project at runtime #87

Open
arminzavada opened this issue Sep 1, 2021 · 0 comments
Open

Headless Gamma Docker Image builds the project at runtime #87

arminzavada opened this issue Sep 1, 2021 · 0 comments

Comments

@arminzavada
Copy link
Member

When starting the Docker Image it first downloads a lot of maven dependencies, then compiles the project. This is wasteful and unnecessary in the least, and at the worst case results in unrunnable containers; when the given user is not able to write to the ~/.m2 folder.

Please, change the Dockerfile to build images that have only the runnable .jar file, and run it as an entrypoint.

Note: it would also be great, if we could have less image layers (it has currently 31 layers, and is 1.19GB, which is unnecessarily big)

  • download theta beforehand, not during the image build process
  • use smaller base image (maven should not be needed, niether is a lot of apt-get commands)
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

No branches or pull requests

1 participant