m4rc3l05M
Denoβ€’15mo agoβ€’
7 replies
m4rc3l05

Deno v2 deno install not installing all dep files

Hey, trying to create a docker image using deno v2 where i install dependencies before copying source files like

FROM docker.io/denoland/deno:alpine-2.0.0

RUN mkdir /app
RUN chown -R deno:deno /app

USER deno

WORKDIR /app

COPY --chown=deno:deno deno.json deno.lock .

RUN deno install --node-modules-dir
RUN deno eval "import '@db/sqlite'"

COPY --chown=deno:deno . .

RUN mkdir /app/data
VOLUME [ "/app/data" ]

EXPOSE 4321 4322


But i am running into a problem when i run the image i get an error:
error: Specifier not found in cache: "https://jsr.io/@hono/hono/4.6.2/src/jsx/jsx-runtime.ts", --cached-only is specified.
    at file:///app/src/apps/web/app.tsx:1:1


My deno.json file looks like
{
  ...
  "compilerOptions": {
    "jsx": "precompile",
    "jsxImportSource": "@hono/hono/jsx"
  },
  "lock": {
    "frozen": true
  },
  "imports": {
    "@hono/hono": "jsr:@hono/hono@4.6.2",
    ...
  }
}


What could be the issue? i am under the impression that
deno install
would install all files from all deps
Was this page helpful?