Open yuuuxt opened 3 years ago
Thanks for opening the issue @yuuuxt ! Curious if you customized your carbon app image (yuuuxt/carbon:4.8.1
) in anyway or did you just build it with the Dockerfile from the carbon repo?
Hi @kcq , thanks for the project and your reply! The Dockerfile
is here (also updated in the issue above), I just used git clone
instead of copying from context, I think they are alike?
I have a similar issue slimming perplexica docker images
@rqi14 just double checking... this project, right: https://github.com/ItzCrazyKns/Perplexica/tree/master
@rqi14 just double checking... this project, right: https://github.com/ItzCrazyKns/Perplexica/tree/master
Yes. I have a demo of building and slimming images here https://github.com/rqi14/Perplexica-docker
I have to specify several include paths
Expected Behavior
the carbon example isn't working as expected.
according to this comment, I thought I don't need to explicitly include (part of)
node_modules
.Actual Behavior
I need to have
/node_modules/next/dist
to be explicitly included.Steps to Reproduce the Problem
yuuuxt/carbon:4.8.1
(docker hub,Dockerfile
)docker-slim build --copy-meta-artifacts . --include-path=/app/carbon/.next --include-path=/app/carbon/public yuuuxt/carbon:4.8.1
docker-slim build --copy-meta-artifacts . --include-path=/app/carbon/.next --include-path=/app/carbon/public --include-path=/app/carbon/node_modules/next/dist yuuuxt/carbon:4.8.1
Specifications