cleaned Docker process #21

Merged
adrien merged 1 commit from feat/better-docker into main 2023-04-10 14:13:31 +00:00
3 changed files with 4 additions and 8 deletions

View file

@ -1,5 +0,0 @@
FROM scratch
ADD bottin.static /bottin
ENTRYPOINT ["/bottin"]

View file

@ -24,7 +24,7 @@ Features:
- Access control through an ACL (hardcoded in the configuration file) - Access control through an ACL (hardcoded in the configuration file)
A Docker image is provided on the [Docker hub](https://hub.docker.com/r/lxpz/bottin_amd64). A Docker image is provided on the [Docker hub](https://hub.docker.com/r/dxflrs/bottin) (built in `default.nix`).
An example for running Bottin on a Nomad cluster can be found in `bottin.hcl.example`. An example for running Bottin on a Nomad cluster can be found in `bottin.hcl.example`.
Bottin takes a single command line argument, `-config <filename>`, which is the Bottin takes a single command line argument, `-config <filename>`, which is the
@ -53,7 +53,7 @@ nix-build -A docker
```bash ```bash
docker load < $(nix-build -A docker) docker load < $(nix-build -A docker)
docker push ??? docker push dxflrs/bottin:???
``` ```
## Server initialization ## Server initialization

View file

@ -48,7 +48,8 @@ in rec {
docker = pkgs.dockerTools.buildImage { docker = pkgs.dockerTools.buildImage {
name = "dxflrs/bottin"; name = "dxflrs/bottin";
config = { config = {
Cmd = [ "${pkg}/bottin" ]; Entrypoint = [ "${pkg}/bottin" ];
WorkingDir = "/";
}; };
}; };
} }