Add entrypoint script and cacerts to image
All checks were successful
deliver / deliver (push) Successful in 2m0s
build / build (pull_request) Successful in 16s

This commit is contained in:
Paul Brinkmeier 2025-10-07 12:43:48 +02:00
parent 4a6e3b2454
commit c25ead672b
2 changed files with 16 additions and 2 deletions

View File

@ -63,8 +63,22 @@
pkgs.dockerTools.buildImage {
name = "git.pbrinkmeier.de/paul/yore";
tag = yore.version;
config.Cmd = [ "${yore}/bin/yore" ];
copyToRoot = [ pkgs.cacert ];
config.Cmd = [ "${entrypoint}/bin/run" ];
};
entrypoint = pkgs.writeShellApplication {
name = "run";
runtimeInputs = [ pkgs.coreutils pkgs.dbmate yore ];
text = ''
mkdir -p /workspace/db
cp -r ${./db}/* /workspace/db
cd /workspace
dbmate up
yore
'';
};
in {
packages = rec {
default = yore;

View File

@ -1,7 +1,7 @@
cabal-version: 3.4
name: yore
version: 0.0.1
version: 0.0.2
author: Paul Brinkmeier
maintainer: hallo@pbrinkmeier.de
copyright: 2023 Paul Brinkmeier