mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 03:26:27 +02:00
Nix Piston: dev and prod containers
- Change appEnv to isDev - Determine the image name in api/default.nix - Use production image in ./piston test
This commit is contained in:
parent
c2bc1ebf94
commit
4578a9d15b
3 changed files with 15 additions and 16 deletions
|
@ -74,12 +74,12 @@
|
|||
containers = {
|
||||
dev = (import ./api {
|
||||
inherit pkgs nosocket;
|
||||
appEnv = "dev";
|
||||
isDev = true;
|
||||
}).container;
|
||||
|
||||
prod = (import ./api {
|
||||
inherit pkgs nosocket;
|
||||
appEnv = "prod";
|
||||
isDev = false;
|
||||
}).container;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue