mirror of https://github.com/Nofated095/Q2TG.git
fix: ffmpeg error in docker
This commit is contained in:
parent
28418baff2
commit
4ec21f7e86
10
docker.nix
10
docker.nix
|
@ -4,7 +4,13 @@ nix2container.buildImage {
|
||||||
maxLayers = 8;
|
maxLayers = 8;
|
||||||
# optimizations
|
# optimizations
|
||||||
layers = with pkgs;[
|
layers = with pkgs;[
|
||||||
(nix2container.buildLayer { deps = [ bash ]; })
|
(nix2container.buildLayer {
|
||||||
|
copyToRoot = pkgs.buildEnv {
|
||||||
|
name = "root";
|
||||||
|
paths = [ pkgs.bash pkgs.coreutils ];
|
||||||
|
pathsToLink = [ "/bin" ];
|
||||||
|
};
|
||||||
|
})
|
||||||
(nix2container.buildLayer { deps = [ nodejs ]; })
|
(nix2container.buildLayer { deps = [ nodejs ]; })
|
||||||
# deps of sharp
|
# deps of sharp
|
||||||
(nix2container.buildLayer {
|
(nix2container.buildLayer {
|
||||||
|
@ -27,7 +33,7 @@ nix2container.buildImage {
|
||||||
(
|
(
|
||||||
pkgs.writeScript "start" ''
|
pkgs.writeScript "start" ''
|
||||||
#!${pkgs.bash}/bin/bash
|
#!${pkgs.bash}/bin/bash
|
||||||
${pkgs.coreutils}/bin/mkdir -p /tmp /root/.cache
|
mkdir -p /tmp /root/.cache
|
||||||
${flakePkgs.prisma-patched}/bin/prisma db push --accept-data-loss --skip-generate --schema ${flakePkgs.default}/libexec/q2tg/node_modules/.prisma/client/schema.prisma
|
${flakePkgs.prisma-patched}/bin/prisma db push --accept-data-loss --skip-generate --schema ${flakePkgs.default}/libexec/q2tg/node_modules/.prisma/client/schema.prisma
|
||||||
${flakePkgs.default}/bin/q2tg
|
${flakePkgs.default}/bin/q2tg
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in New Issue