You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docker image size exploded from v3.7.x to v3.8.x
❯ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ghcr.io/nodebb/nodebb 3.8.1 791cf33c60df 24 hours ago 1.75GB
ghcr.io/nodebb/nodebb 3.7.5 5b1553eafba7 13 days ago 647MB
Most size increase is caused by chown -R ${USER}:${USER} /usr/src/app/ in above RUN section.
It is also bad style to do the above COPY statements with user/group id's which does not exist at that time, they are created later in the RUN statement (I was surprised that this is allowed by e.g. buildkit, kaniko throws an error).
The text was updated successfully, but these errors were encountered:
NodeBB version
v3.8.1
NodeBB git hash
f491d43
NodeJS version
v20.13.1
Installed NodeBB plugins
only defaults
Database type
MongoDB
Database version
v7.0.9
Exact steps to cause this issue
The docker image size exploded from
v3.7.x
tov3.8.x
What you expected
Image size of
v3.7.x
similar tov3.8.x
What happened instead
see above
Anything else?
This is caused by the refactored
Dockerfile
.Most size increase is caused by
chown -R ${USER}:${USER} /usr/src/app/
in aboveRUN
section.It is also bad style to do the above
COPY
statements with user/group id's which does not exist at that time, they are created later in theRUN
statement (I was surprised that this is allowed by e.g. buildkit, kaniko throws an error).The text was updated successfully, but these errors were encountered: