Skip to content

Commit

Permalink
howtobuild with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
frie321984 committed Oct 12, 2024
1 parent 5159610 commit df063dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build-gitlab-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nix-build nixDockImg.nix
podman load < result
podman push registry.gitlab.com/frie321984/frieweb:latest
4 changes: 2 additions & 2 deletions nixDockImg.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs; dockerTools.buildLayeredImage {
name = "hello";
name = "registry.gitlab.com/frie321984/frieweb";
tag = "latest";

contents = [ cowsay bashInteractive coreutils catimg ];
contents = [ cowsay bashInteractive coreutils catimg python3 nodejs_22 lftp gnumake imagemagick ];

config.Cmd = [ "/bin/bash" ];
}

0 comments on commit df063dc

Please sign in to comment.