Open fjuniorr opened 11 months ago
No projeto dos volumes da LOA estou usando a flag --secret durante o docker build. Isso expõe um arquivo do host dentro do container de forma segura, no entanto eu não consigo controlar o nome que esse arquivo vai ter dentro do container. Copiar para o arquivo .Renviron
dentro do container e depois deletar não é uma opção porque ainda vai ficar nas layers do docker.
A vignette Using renv with Docker • renv não menciona esse caso de uso. Mas achei essa frase que chamou minha atenção:
At work I use a number of internal packages stored in a private CRAN that rely on authentication through HTTP (basic HTTP access with username/password in the URL or bearer authentication with a token in the header).
The approach here to install with a running container makes it easy to share these credentials as environment variables with e.g. a -e argument to a docker run.
This is very different from trying to install packages at build time, because it is difficult to make environment variables availabe in a non-persistent manner at image build time.
-- Installing packages • renv