How to Install all Packages in a Project into the General Julia Manifest

I think I solved my problem.

I now do the following:

RUN julia -e "using Pkg; Pkg.instantiate()"
COPY Project.toml /user/.julia/environments/v1.7/Project.toml
COPY Manifest.toml /user/.julia/environments/v1.7/Manifest.toml
RUN julia -e "using Pkg; Pkg.instantiate(); Pkg.precompile()"

The first line produces my .julia directory, the next two are to copy over my project and manifest files, and the final is to instantiate and precompile. It appears to have worked - thanks.

3 Likes