Skip to content

Commit

Permalink
Add creation date to Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Samasaur1 committed Jan 7, 2024
1 parent 2e08af2 commit b4ff73d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
description = "The server-side software for Remote Text";

outputs = { nixpkgs, ... }:
outputs = { self, nixpkgs, ... }:
let
forAllSystems = gen:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
Expand All @@ -12,6 +12,8 @@
default = remote-text-server;
dockerImage = pkgs.dockerTools.buildImage {
name = "remote-text-server";
# Based on the last commit date, see: https://nixos.wiki/wiki/Docker#Reproducible_image_dates
created = builtins.substring 0 8 self.lastModifiedDate;
config = {
Cmd = [ "${remote-text-server}/bin/remote-text-server" ];
};
Expand Down

0 comments on commit b4ff73d

Please sign in to comment.