diff --git a/services/web/Dockerfile b/services/web/Dockerfile index b9a52b7c53..91fdf100e7 100644 --- a/services/web/Dockerfile +++ b/services/web/Dockerfile @@ -35,7 +35,7 @@ FROM base AS deps-prod COPY services/web/scripts/fetch-pyodide-packages.mjs /overleaf/services/web/scripts/fetch-pyodide-packages.mjs RUN cd /overleaf/services/web && node scripts/fetch-pyodide-packages.mjs -COPY package.json yarn.lock .yarnrc.yml /overleaf/ +COPY package.json yarn.lock .yarnrc.yml .pnp.register.mjs /overleaf/ COPY libraries/access-token-encryptor/package.json /overleaf/libraries/access-token-encryptor/package.json COPY libraries/eslint-plugin/package.json /overleaf/libraries/eslint-plugin/package.json COPY libraries/fetch-utils/package.json /overleaf/libraries/fetch-utils/package.json @@ -132,6 +132,7 @@ COPY tools/migrations/ /overleaf/tools/migrations/ RUN rm /overleaf/services/web/modules/server-ce-scripts -rf RUN OVERLEAF_CONFIG=/overleaf/services/web/config/settings.overrides.saas.js nice yarn run precompile-pug +ENV NODE_OPTIONS="--require /overleaf/.pnp.cjs --import /overleaf/.pnp.register.mjs" # the web image with only production dependencies but no webpack production build, for development FROM pug AS app-only diff --git a/services/web/scripts/translations/cleanupUnusedLocales.js b/services/web/scripts/translations/cleanupUnusedLocales.js index d98ee6eb7e..2edd243be6 100644 --- a/services/web/scripts/translations/cleanupUnusedLocales.js +++ b/services/web/scripts/translations/cleanupUnusedLocales.js @@ -47,8 +47,8 @@ async function main() { { // run from services/web directory cwd: Path.join(__dirname, '../../'), - // 1GB - maxBuffer: 1024 * 1024 * 1024, + // 2GB + maxBuffer: 2 * 1024 * 1024 * 1024, // Docs: https://nodejs.org/docs/latest-v16.x/api/child_process.html#child_process_options_stdio // Entries are [stdin, stdout, stderr] stdio: ['ignore', 'pipe', 'inherit'],