Skip to content

Commit

Permalink
precompile julia packages in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenaH84 committed Feb 27, 2024
1 parent 20ebfeb commit 6414b5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__pycache__
env
.github
9 changes: 9 additions & 0 deletions flask_api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ RUN julia -e 'using Pkg; Pkg.add(PackageSpec(;name = "Jutul",version = "0.2.23")
#RUN julia -e 'using Pkg; Pkg.add(PackageSpec(;name = "Jutul",version = "0.2.14"))'
RUN julia -e 'using Pkg; Pkg.add(PackageSpec(;name = "LoggingExtras",version = "1.0.3"))'

# Precompile Julia packages
RUN julia -e 'using PythonCall'
RUN julia -e 'using JSON'
RUN julia -e 'using BattMo'
RUN julia -e 'using Jutul'
RUN julia -e 'using LoggingExtras'



#RUN julia -e 'using Pkg; Pkg.add(PackageSpec(;name = "PrettyTables",version = "2.2.7"))'

# Precompile Julia packages
Expand Down

0 comments on commit 6414b5e

Please sign in to comment.