Open
Description
deno 2.1.1 (stable, release, x86_64-unknown-linux-gnu)
v8 13.0.245.12-rusty
typescript 5.6.2
Getting
2.472 error: Writing deno compile executable to temporary file './build/client.tmp-c7ddbd1567062e51'
2.472
2.472 Caused by:
2.472 0: Building npm vfs.
2.472 1: No such file or directory (os error 2)
when trying to compile tiny project within official docker image. The error is also not really helpful.
Steps to reproduce:
client.ts
// import Bottleneck from "bottleneck";
console.log("foo bar");
deno.json
{
"tasks": {
"build:client": "deno compile --allow-read --allow-write --output ./build/client ./client.ts"
},
"imports": {
"bottleneck": "npm:[email protected]"
},
"compilerOptions": {
"checkJs": true,
"strict": true
}
}
Dockerfile
FROM denoland/deno:alpine-2.1.1
COPY . /app
RUN deno --version && cd /app/ && ls -liah && deno run build:client
deno.lock
{
"version": "4",
"specifiers": {
"npm:[email protected]": "2.19.5"
},
"npm": {
"[email protected]": {
"integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw=="
}
},
"workspace": {
"dependencies": [
"npm:[email protected]"
]
}
}
Although same project builds fine on my host running Arch Linux.
When I uncomment bottlebeck
import it builds within docker without issues 🤔
is that some ldd issues? Tried both alpine and debian base images, but result is identical.