Replies: 2 comments
-
|
el problema es que BUN_INSTALL_CACHE_DIR solo afecta al cache de paquetes instalados, no al de bunx que va por otro lado. para cachear bunx en docker tienes que montar el directorio ~/.bun directamente: FROM oven/bun:alpine
WORKDIR /workspace
VOLUME /root/.bun
ENTRYPOINT ["bunx", "xxx"]y luego en el docker run: con un named volume se mantiene entre ejecuciones. si estas en ci/cd la mayoria tienen soporte para cachear volumes de docker directamente. la ruta exacta del cache de bunx suele ser ~/.bun/install/cache pero el volumen entero es lo mas facil de gestionar |
Beta Was this translation helpful? Give feedback.
-
|
Your ENV is set only inside the ENTRYPOINT command: WORKDIR /workspace Pre-create so permissions are good (runs as root)RUN mkdir -p $BUN_INSTALL_CACHE_DIR EXPOSE 3000 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I found the
BUN_INSTALL_CACHE_DIRenv, but it doesn't seem to be effective for Bunx.Dockerfile
And
But i cannot found
.bundir in my./dataBeta Was this translation helpful? Give feedback.
All reactions