gitea-attachements-proxy/docker.nix
Garionion 509a3009c9
Some checks failed
continuous-integration/drone/push Build is failing
add flake support, build docker image with nix
2022-01-14 18:01:01 +01:00

22 lines
507 B
Nix

{ system ? builtins.currentSystem }:
let
pkgs = import <nixpkgs> { };
callPackage = pkgs.lib.callPackageWith pkgs;
gitea-attachements-proxy = callPackage ./package.nix { };
dockerImage = pkg:
pkgs.dockerTools.buildLayeredImage {
name = "garionion/gitea-attachements-proxy";
tag = "latest";
contents = [ pkgs.cacert pkg ];
config = {
Cmd = [ "/bin/gitea-attachements-proxy" ];
WorkingDir = "/";
};
};
in dockerImage gitea-attachements-proxy