This commit is contained in:
soraefir
2026-05-11 02:29:11 +02:00
parent f05f7b0147
commit 123d18d1e8

View File

@@ -71,8 +71,8 @@ let
tag = etherpad_exe.version; tag = etherpad_exe.version;
contents = with pkgs;[cacert tzdata bash coreutils curl settings ]; contents = with pkgs;[cacert tzdata bash coreutils curl settings ];
fakeRootCommands = '' fakeRootCommands = ''
mkdir -p ./tmp mkdir -p /opt /tmp
chmod 1777 ./tmp chmod 1777 /opt /tmp
''; '';
config = { config = {
Cmd = [ "${etherpad_exe}/bin/etherpad-lite" "--settings=/etc/etherpad/settings.json" "--apikey=\"$APIKEY\""]; Cmd = [ "${etherpad_exe}/bin/etherpad-lite" "--settings=/etc/etherpad/settings.json" "--apikey=\"$APIKEY\""];
@@ -80,6 +80,7 @@ let
ExposedPorts = { "${toString containerCfg.port}/tcp" = {}; }; ExposedPorts = { "${toString containerCfg.port}/tcp" = {}; };
Env = [ Env = [
"NODE_ENV=production" "NODE_ENV=production"
"HOME=/opt"
]; ];
}; };