Closed SudoVanilla closed 1 week ago
Describe the bug
When building a Docker image for an Astro site using Astro i18next, the generate command fails.
To Reproduce
Steps to reproduce the behavior:
git clone https://codeberg.org/PokeTube/astro-experiment
docker build -t poke .
Screenshots
If applicable, add screenshots to help explain your problem.
Context (please complete the following information):
astro-i18next
1.0.0-beta.21
astro
4.11.0
Fedora Workstation 40
Error Output
korbs@ship-of-theseus:~/poke/# sudo bun run docker:build $ docker build -t poke . [+] Building 11.3s (10/11) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 239B 0.0s => [internal] load metadata for codeberg.org/korbs/bun:amd64 1.8s => [auth] *:: korbs/bun:pull token for codeberg.org 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 367B 0.0s => [1/6] FROM codeberg.org/korbs/bun:amd64@sha256:9df2cbca1e5e5f5f9f6d1870aac383f62de3d1686420d6496ea4926c5429d6d3 0.0s => [internal] load build context 0.0s => => transferring context: 5.03MB 0.0s => CACHED [2/6] WORKDIR /app 0.0s => [3/6] COPY . . 0.1s => [4/6] RUN bun install 8.7s => ERROR [5/6] RUN bun run translate 0.6s ------ > [5/6] RUN bun run translate: 0.122 $ astro-i18next generate 0.477 🧪 Localized .astro pages were generated successfully, it took 9ms! 0.492 347 | ${i.trim()} 0.492 348 | ---`):`--- 0.492 349 | ${i.trim()} 0.492 350 | --- 0.492 351 | 0.492 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.492 0.492 TypeError: undefined is not an object (evaluating 'l.forEach') 0.492 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.492 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.492 at forEach (:1:11) 0.492 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.492 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.492 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.492 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.492 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.492 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.493 347 | ${i.trim()} 0.493 348 | ---`):`--- 0.493 349 | ${i.trim()} 0.493 350 | --- 0.493 351 | 0.493 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.493 0.493 TypeError: undefined is not an object (evaluating 'l.forEach') 0.493 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.493 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.493 at forEach (:1:11) 0.493 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.493 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.493 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.493 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.493 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.493 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.494 347 | ${i.trim()} 0.494 348 | ---`):`--- 0.494 349 | ${i.trim()} 0.494 350 | --- 0.494 351 | 0.494 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.494 0.494 TypeError: undefined is not an object (evaluating 'l.forEach') 0.494 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.494 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.494 at forEach (:1:11) 0.494 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.494 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.494 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.494 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.494 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.494 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.495 347 | ${i.trim()} 0.495 348 | ---`):`--- 0.495 349 | ${i.trim()} 0.495 350 | --- 0.495 351 | 0.495 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.495 0.495 TypeError: undefined is not an object (evaluating 'l.forEach') 0.495 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.495 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.495 at forEach (:1:11) 0.495 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.495 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.495 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.495 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.495 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.495 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.496 347 | ${i.trim()} 0.496 348 | ---`):`--- 0.496 349 | ${i.trim()} 0.496 350 | --- 0.496 351 | 0.496 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.496 0.496 TypeError: undefined is not an object (evaluating 'l.forEach') 0.496 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.496 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.496 at forEach (:1:11) 0.496 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.496 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.496 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.496 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.496 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.496 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.497 347 | ${i.trim()} 0.497 348 | ---`):`--- 0.497 349 | ${i.trim()} 0.497 350 | --- 0.497 351 | 0.497 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.497 0.497 TypeError: undefined is not an object (evaluating 'l.forEach') 0.497 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.497 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.497 at forEach (:1:11) 0.497 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.497 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.497 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.497 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.497 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.497 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.498 347 | ${i.trim()} 0.498 348 | ---`):`--- 0.498 349 | ${i.trim()} 0.498 350 | --- 0.498 351 | 0.498 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.498 0.498 TypeError: undefined is not an object (evaluating 'l.forEach') 0.498 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.498 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.498 at forEach (:1:11) 0.498 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.498 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.498 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.498 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.498 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.498 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.499 347 | ${i.trim()} 0.499 348 | ---`):`--- 0.499 349 | ${i.trim()} 0.499 350 | --- 0.499 351 | 0.499 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.499 0.499 TypeError: undefined is not an object (evaluating 'l.forEach') 0.499 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.499 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.499 at forEach (:1:11) 0.499 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.499 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.499 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.499 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.499 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.499 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.501 347 | ${i.trim()} 0.501 348 | ---`):`--- 0.501 349 | ${i.trim()} 0.501 350 | --- 0.501 351 | 0.501 352 | `+e,uE=(e,i=1)=>(e.startsWith("./")&&i>0&&(e=e.slice(2)),e.padStart(e.length+i*3,"../")),NW=e=>/((^_)|(\/_))/.test(e),RI=(e,i)=>(e=e.replace(/(import\s+.*["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(Astro.glob\(["'])(\..*)(["']\))/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e=e.replace(/(<script\s+src=["'])(\..*)(["'])/g,(l,_,h,p)=>`${_}${uE(h,i)}${p}`),e),BI=e=>ey.default.createSourceFile("x.ts",AW(e),ey.default.ScriptTarget.Latest),JI=(e,i)=>{let l=ey.default.transform(e,[II],{locale:i});return ey.default.createPrinter().printNode(ey.default.EmitHint.Unspecified,l.transformed[0],e)},lE=(e,i=void 0,l=[])=>{let _=new wI.fdir().filter(h=>!NW(h)&&h.endsWith(".astro")).exclude(h=>l.includes(h)).withFullPaths();return i?_.crawl(`${e}${FI.sep}${i}`).sync():_.crawl(e).sync()},jI=e=>{e.forEach(i=>{OI.default.ensureDirSync(FI.dirname(i.path)),kW.writeFileSync(i.path,i.source)})},UI=(e,i=null,l="",_={})=>{if(e=e.replace(/^\/+|\/+$/g,""),l=l.replace(/\/+$/g,""),i===null)return`${l}/${e}`;e=e.replace(/.astr 0.501 0.501 TypeError: undefined is not an object (evaluating 'l.forEach') 0.501 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1374 0.501 at /app/node_modules/astro-i18next/dist/cli/index.js:352:1262 0.501 at forEach (:1:11) 0.501 at zI (/app/node_modules/astro-i18next/dist/cli/index.js:352:1239) 0.501 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2695 0.501 at /app/node_modules/astro-i18next/dist/cli/index.js:352:2567 0.501 at /app/node_modules/astro-i18next/dist/cli/index.js:286:28069 0.501 at Lv (/app/node_modules/astro-i18next/dist/cli/index.js:286:24130) 0.501 at handleValidationAndGetResult (/app/node_modules/astro-i18next/dist/cli/index.js:286:28052) 0.501 0.501 Bun v1.1.16 (Linux x64 baseline) 0.508 error: script "translate" exited with code 1 ------ Dockerfile:7 -------------------- 5 | 6 | RUN bun install 7 | >>> RUN bun run translate 8 | RUN bun run build 9 | -------------------- ERROR: failed to solve: process "/bin/sh -c bun run translate" did not complete successfully: exit code: 1 error: script "docker:build" exited with code 1
Issue isolated to Bun image, investigating... (Tested and works with node:lts)
node:lts
Describe the bug
When building a Docker image for an Astro site using Astro i18next, the generate command fails.
To Reproduce
Steps to reproduce the behavior:
git clone https://codeberg.org/PokeTube/astro-experiment
docker build -t poke .
Screenshots
If applicable, add screenshots to help explain your problem.
Context (please complete the following information):
astro-i18next
version:1.0.0-beta.21
astro
version:4.11.0
Fedora Workstation 40
Error Output