Clean up Dockerfile

This commit is contained in:
Alexander Bentkamp
2023-05-04 11:48:58 +02:00
parent a8d61e4770
commit d37c2ade12
4 changed files with 64 additions and 35 deletions

View File

@@ -1,8 +1,24 @@
import Lake
open Lake DSL
require GameServer from git
"https://github.com/leanprover-community/lean4game.git"@"main"/"server"
def LocalGameServer : Dependency := {
name := `GameServer
src := Source.path "../lean4game/server"
}
def RemoteGameServer : Dependency := {
name := `GameServer
src := Source.git "https://github.com/leanprover-community/lean4game.git" "main" "server"
}
/- Choose dependency depending on the environment variable NODE_ENV -/
open Lean in
#eval (do
let gameServerName :=
if ( IO.getEnv "NODE_ENV") == some "development" then ``LocalGameServer else ``RemoteGameServer
modifyEnv (fun env => Lake.packageDepAttr.ext.addEntry env gameServerName)
: Elab.Command.CommandElabM Unit)
require mathlib from git
"https://github.com/leanprover-community/mathlib4.git" @ "fc4a489c2af75f687338fe85c8901335360f8541"