switch to buildLayeredImage
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
824ef700b2
commit
8360e05aa0
@ -3,11 +3,19 @@ let
|
|||||||
nextcloud-apache = pkgs.dockerTools.pullImage (import ./nextcloud-apache.nix);
|
nextcloud-apache = pkgs.dockerTools.pullImage (import ./nextcloud-apache.nix);
|
||||||
in
|
in
|
||||||
|
|
||||||
pkgs.dockerTools.buildImage {
|
pkgs.dockerTools.buildLayeredImage {
|
||||||
name = "nextcloud-custom";
|
name = "nextcloud-custom";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
fromImage = nextcloud-apache;
|
fromImage = nextcloud-apache;
|
||||||
runAsRoot = ''
|
# diskSize=4096;
|
||||||
|
# buildVMMemorySize=2048;
|
||||||
|
compressor = "zstd";
|
||||||
|
contents = ./.;
|
||||||
|
|
||||||
|
enableFakechroot = true;
|
||||||
|
fakeRootCommands = ''
|
||||||
|
#!${pkgs.runtimeShell}
|
||||||
|
|
||||||
set -ex; \
|
set -ex; \
|
||||||
\
|
\
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
@ -61,7 +69,6 @@ pkgs.dockerTools.buildImage {
|
|||||||
/var/run/supervisord \
|
/var/run/supervisord \
|
||||||
;
|
;
|
||||||
'';
|
'';
|
||||||
copyToRoot = ./supervisord.conf;
|
|
||||||
config = {
|
config = {
|
||||||
ENV = {
|
ENV = {
|
||||||
NEXTCLOUD_UPDATE = 1;
|
NEXTCLOUD_UPDATE = 1;
|
||||||
@ -69,7 +76,7 @@ pkgs.dockerTools.buildImage {
|
|||||||
CMD = [
|
CMD = [
|
||||||
"/usr/bin/supervisord"
|
"/usr/bin/supervisord"
|
||||||
"-c"
|
"-c"
|
||||||
"/supervisord.conf"
|
./supervisord.conf
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user