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
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
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