Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

java-openliberty: appsody build images too large #647

Open
scottkurz opened this issue Feb 8, 2020 · 0 comments
Open

java-openliberty: appsody build images too large #647

scottkurz opened this issue Feb 8, 2020 · 0 comments
Assignees
Labels
stack/java-openliberty Issues related to java-openliberty stack

Comments

@scottkurz
Copy link
Contributor

A docker images shows that a simple, default template app image from our stack (after `appsody build) is 564MB.

OTOH, for the app in this guide (which is a bit bigger even, not that that matters):
https://openliberty.io/guides/containerize.html#building-your-docker-image

the image size is 395MB.

From doing docker history ... I think the issue is the

COPY --chown=1001:0 --from=0 /project/user-app/target/* /tmp/wars/

since we're copying EVERYTHING just to copy the WAR later.

Not saying I have a better solution for the problem we were trying to solve..just opening the issue.

@scottkurz scottkurz added the stack/java-openliberty Issues related to java-openliberty stack label Feb 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stack/java-openliberty Issues related to java-openliberty stack
Projects
None yet
Development

No branches or pull requests

2 participants