cyberkyne commited on
Commit
cc5c6dc
Β·
verified Β·
1 Parent(s): e08c143

Upload 22 files

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -4
  2. src/Project.toml +0 -1
  3. src/setup_pkg.jl +4 -0
Dockerfile CHANGED
@@ -33,10 +33,9 @@ RUN pip install --no-cache-dir -r /tmp/requirements.txt
33
  COPY . .
34
 
35
  # ── Step 1: Resolve + precompile Julia packages ───────
36
- # Write Julia code to a temp script to avoid Docker misreading
37
- # Julia keywords (using/import) as Dockerfile instructions.
38
- RUN printf 'import Pkg\nPkg.instantiate()\nPkg.precompile()\nprintln("Julia packages resolved")\n' \
39
- | julia --project=/app/src
40
 
41
  # ── Step 2: Warmup β€” JIT-compile all hot paths ────────
42
  RUN julia --project=/app/src /app/src/warmup.jl
 
33
  COPY . .
34
 
35
  # ── Step 1: Resolve + precompile Julia packages ───────
36
+ # Use a script file β€” avoids both Docker keyword parsing issues
37
+ # and REPL-mode error isolation of the printf pipe approach.
38
+ RUN julia --project=/app/src /app/src/setup_pkg.jl
 
39
 
40
  # ── Step 2: Warmup β€” JIT-compile all hot paths ────────
41
  RUN julia --project=/app/src /app/src/warmup.jl
src/Project.toml CHANGED
@@ -1,5 +1,4 @@
1
  [deps]
2
- JSON3 = "0f8b85d8-7e73-4b43-9b43-f8e4f07d6bcd"
3
  Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
4
  Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
5
 
 
1
  [deps]
 
2
  Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
3
  Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
4
 
src/setup_pkg.jl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import Pkg
2
+ Pkg.instantiate()
3
+ Pkg.precompile()
4
+ println("Julia packages resolved βœ“")