DenoDDeno
Powered by
ChilliSniffC
Denoβ€’4y 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"
# 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)
// 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".
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 ?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

RUN deno task in Dockerfile
vanpetVvanpet / help
3y ago
permission denied error when running deno install inside dockerfile
WazbatWWazbat / help
2y ago