Skip to content

Commit

Permalink
FIX: Docker github action
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocubic committed Jul 6, 2022
1 parent 42591ce commit 5d8f87f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM julia:1.6.3
FROM julia:1.7.3

RUN apt-get update && \
apt-get -y --no-install-recommends install build-essential gcc fontconfig-config git

# Julia env
ADD Project.toml /
ADD Manifest.toml /

# Source code
ADD src /src
Expand All @@ -21,10 +22,7 @@ RUN julia --color=yes julia-buildpkg/add_general_registry.jl
RUN rm -rf julia-buildpkg

# Instantiate Julia Env
RUN julia --color=yes --project=/ -e 'using Pkg; if VERSION >= v"1.1.0-rc1"; Pkg.build(verbose=true); else Pkg.build(); end'

# PackageCompiler
RUN julia -q --project=/ -e 'using PackageCompiler; create_sysimage([:PowerModelsONM]; replace_default=true, cpu_target="generic");'
RUN julia --color=yes --project=/ -e 'using Pkg; Pkg.instantiate(); Pkg.build(verbose=true); Pkg.precompile();'

# Set entrypoint
ENTRYPOINT [ "julia", "--sysimage-native-code=yes", "--project=/", "/src/cli/entrypoint.jl" ]

0 comments on commit 5d8f87f

Please sign in to comment.