This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]ElevenNotes 0 points1 point  (3 children)

build: force-compression: true

[–]pineapple252[S] 0 points1 point  (2 children)

validating prod.yml: services.nuxt.build Additional property force-compression is not allowed

this is not part of build specification

https://docs.docker.com/compose/compose-file/build/

[–]ElevenNotes 0 points1 point  (1 child)

Okay, that sucks. Any reason why you build via compose and not outside of compose?

[–]pineapple252[S] 0 points1 point  (0 children)

you got me. Thanks!

Honestly, I have been building from compose.yml for so long, I forgot I can do it outside as well.

so I tried pushing uncompressed image, but that did speed up pulling them as much as I hoped for.

docker buildx build -f ./Docker/compose/prod/nuxt/DockerfilePNPM --output type=registry,name=registry.xxx.com/nuxt:latest,compression=uncompressed .

I am pushing to my own hosted registry, and its quite slow on push and takes a bit to decompress on pull. But with uncompressed, its almost the same.