ChilliSniffC
Denoβ€’3y agoβ€’
8 replies
ChilliSniff

deno in Dockerfile

i have successfully installed deno with theese commands:
# install denojs 
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
ENV DENO_INSTALL /root/.deno
ENV PATH="$DENO_INSTALL/bin:$PATH"

in my Dockerfile,
but when i try to run a script:
// export { Buffer } from "https://deno.land/std/node/buffer.ts";
import { Buffer } from "https://deno.land/std/node/buffer.ts";
console.log(Buffer)

inside the virtual docker container i get the following message
Warning Implicitly using latest version (0.178.0) for https://deno.land/std/node/buffer.ts
error: Module not found "https://deno.land/std/node/buffer.ts".

what could be going on ?
Was this page helpful?