denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.68k stars 5.38k forks source link

Error to cache the deps inside a docker container #15174

Closed slim-hmidi closed 2 years ago

slim-hmidi commented 2 years ago

I'm using Deno v 1.21.3 and I'm trying to build a docker image for my application:

FROM ubuntu:20.04

# install curl
RUN apt-get update && apt-get install -y curl unzip sudo nginx

# install deno v1.21.3
RUN curl -fsSL https://deno.land/install.sh | sh -s v1.21.3

ENV DENO_INSTALL="/root/.deno"
ENV PATH="${DENO_INSTALL}/bin:${PATH}"

# The working directory of the project
WORKDIR /app

# Copy the backend directory
RUN mkdir backend
COPY backend/deps.ts ./backend/deps.ts 
RUN cd ./backend && deno cache --unstable deps.ts

....

my deps.ts:

// fmt
export {
  bold,
  cyan,
  green,
  red,
} from "https://deno.land/std@0.114.0/fmt/colors.ts";

// flags
export { parse } from "https://deno.land/std@0.120.0/flags/mod.ts";

// oak
export { Application } from "https://deno.land/x/oak@v10.5.1/mod.ts";
export {
  Context,
  helpers,
  isHttpError,
  Router,
  Status,
} from "https://deno.land/x/oak@v10.5.1/mod.ts";
export type { ErrorStatus } from "https://deno.land/x/oak@v10.5.1/mod.ts";

// computed_types
export {
  number,
  Schema,
  string,
  unknown,
} from "https://denoporter.sirjosh.workers.dev/v1.1.0/deno.land/x/computed_types/src/index.ts";
export type { ResolvedValue } from "https://denoporter.sirjosh.workers.dev/v1.1.0/deno.land/x/computed_types/src/index.ts";
export type { ValidationError } from "https://denoporter.sirjosh.workers.dev/v1.1.0/deno.land/x/computed_types/src/index.ts";

// inject
export {
  bootstrap,
  Bootstrapped,
  Injectable,
} from "https://deno.land/x/inject@v0.1.2/mod.ts";

// denodb
export {
  Database,
  DataTypes,
  Model,
  PostgresConnector,
  Relationships,
} from "https://deno.land/x/denodb@v1.0.40/mod.ts";
export type { Connector } from "https://deno.land/x/denodb@v1.0.40/mod.ts";
export type { Values } from "https://deno.land/x/denodb@v1.0.40/lib/data-types.ts";

//bcrypt
export * as bcrypt from "https://deno.land/x/bcrypt@v0.2.4/mod.ts";

//djwt
export {
  create as sign,
  getNumericDate,
  verify,
} from "https://deno.land/x/djwt@v2.4/mod.ts";
export type { Header } from "https://deno.land/x/djwt@v2.4/mod.ts";
export { OAuth2Client } from "https://deno.land/x/oauth2_client@v0.2.1/mod.ts";
// dotenv
export { config as env } from "https://deno.land/x/dotenv@v3.2.0/mod.ts";

// dotenv
export { expect } from "https://deno.land/x/expect@v0.2.9/mod.ts";

// superoak
export { superoak } from "https://deno.land/x/superoak@4.6.0/mod.ts";

// oak_cors
export { CORS } from "https://deno.land/x/oak_cors@v0.1.1/mod.ts";

I got this error, while the build reach this instruction RUN cd ./backend && deno cache --unstable deps.ts:

#18 6.801 error: Import 'https://dev.jspm.io/npm:@jspm/core@1/nodelibs/timers.js' failed: 500 Internal Server Error
#18 6.801     at https://dev.jspm.io/tarn@3:9:8
------
executor failed running [/bin/sh -c cd ./backend && deno cache --unstable deps.ts]: exit code: 1

How can I fix that?

kitsonk commented 2 years ago

Fetching https://dev.jspm.io/npm:@jspm/core@1/nodelibs/timers.js returns a 500 error from JSPM.io. This is not an issue with Deno.

bcordeirodev commented 2 years ago

i have the same problem, and i cant find the solution, in my local application "--reload" not working too. image

slim-hmidi commented 2 years ago

@bcordeirodev it is related to one of the deps you are using. In my case I found the issue in the djwt dependency, it has a dep that is outdated. Try to check which dep throws the error.

bcordeirodev commented 2 years ago

thanks, i have djwt in my project, and is in the latest version, did you remove dwjt from your project?

slim-hmidi commented 2 years ago

Sorry it is denodb not djwt which has the error. It's outdated and not maintained since december 2021.

bcordeirodev commented 2 years ago

Thank you very much, I've been trying to solve it for two days. Now I need to find a solution to rewrite 15 models. ='(

bcordeirodev commented 2 years ago

I resolved my problem changing url from denodb to other repository. https://github.com/eveningkid/denodb/issues/348

airtonix commented 1 month ago
x deno --version
deno 2.0.0 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.13-rusty
typescript 5.6.2

x uname -a
Linux brass 6.10.11-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 18 21:09:58 UTC 2024 x86_64 GNU/Linux

> docker --version
Docker version 27.3.1, build ce12230

> cat ./Dockerfile
FROM denoland/deno:1.38.3

ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}

WORKDIR /app

COPY . .
RUN deno cache main.ts

EXPOSE 8000

CMD ["run", "-A", "main.ts"]
Details

``` x docker build --build-arg GIT_REVISION=$(git rev-parse HEAD) -t my-fresh-app . [+] Building 12.8s (8/8) FINISHED docker:default => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 271B 0.0s => [internal] load metadata for docker.io/denoland/deno:1.38.3 0.8s => [internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [1/4] FROM docker.io/denoland/deno:1.38.3@sha256:df24055e5773ec0e9edcf33e4d592faf3b0cedb098cd0180ccb38dd534ce7eff 0.0s => [internal] load build context 0.3s => => transferring context: 1.02MB 0.2s => CACHED [2/4] WORKDIR /app 0.0s => [3/4] COPY . . 1.2s => ERROR [4/4] RUN deno cache main.ts 10.1s ------ > [4/4] RUN deno cache main.ts: 0.468 Download https://deno.land/std@0.216.0/dotenv/load.ts 0.468 Download https://deno.land/x/fresh@1.7.2/server.ts 0.669 Download https://deno.land/std@0.216.0/dotenv/mod.ts 0.708 Download https://deno.land/x/fresh@1.7.2/src/types.ts 0.708 Download https://deno.land/x/fresh@1.7.2/src/server/mod.ts 0.708 Download https://deno.land/x/fresh@1.7.2/plugins/tailwind.ts 0.725 Download https://deno.land/std@0.216.0/dotenv/parse.ts 0.725 Download https://deno.land/std@0.216.0/dotenv/stringify.ts 0.863 Download https://deno.land/x/fresh@1.7.2/src/server/context.ts 0.863 Download https://deno.land/x/fresh@1.7.2/src/server/deps.ts 0.863 Download https://deno.land/x/fresh@1.7.2/src/server/types.ts 0.863 Download https://deno.land/x/fresh@1.7.2/src/server/boot.ts 0.863 Download https://deno.land/x/fresh@1.7.2/src/server/defines.ts 0.864 Download https://deno.land/x/fresh@1.7.2/src/server/render.ts 0.864 Download https://deno.land/x/fresh@1.7.2/src/server/router.ts 0.864 Download https://esm.sh/preact@10.22.0/jsx-runtime 0.864 Download https://deno.land/x/fresh@1.7.2/runtime.ts 0.864 Download https://esm.sh/*@preact/signals@1.2.2 0.864 Download https://deno.land/std@0.216.0/path/mod.ts 0.864 Download https://deno.land/std@0.216.0/fs/walk.ts 0.864 Download https://deno.land/x/fresh@1.7.2/plugins/tailwind/types.ts 1.060 Download https://deno.land/x/fresh@1.7.2/src/server/constants.ts 1.060 Download https://deno.land/x/fresh@1.7.2/src/server/build_id.ts 1.060 Download https://deno.land/x/fresh@1.7.2/src/runtime/csp.ts 1.060 Download https://deno.land/x/fresh@1.7.2/src/runtime/utils.ts 1.060 Download https://deno.land/x/fresh@1.7.2/src/build/mod.ts 1.060 Download https://deno.land/x/fresh@1.7.2/src/server/rendering/preact_hooks.ts 1.060 Download https://deno.land/x/fresh@1.7.2/src/server/code_frame.ts 1.061 Download https://deno.land/x/fresh@1.7.2/src/server/config.ts 1.061 Download https://deno.land/x/fresh@1.7.2/src/server/compose.ts 1.061 Download https://deno.land/x/fresh@1.7.2/src/server/fs_extract.ts 1.061 Download https://deno.land/x/fresh@1.7.2/src/build/aot_snapshot.ts 1.061 Download https://deno.land/x/fresh@1.7.2/src/server/error_overlay.tsx 1.061 Download https://deno.land/x/fresh@1.7.2/src/constants.ts 1.061 Download https://deno.land/x/fresh@1.7.2/src/server/tailwind_aot_error_page.tsx 1.061 Download https://deno.land/std@0.216.0/fmt/colors.ts 1.061 Download https://deno.land/std@0.216.0/http/server.ts 1.061 Download https://deno.land/std@0.216.0/http/status.ts 1.061 Download https://deno.land/std@0.216.0/media_types/content_type.ts 1.061 Download https://deno.land/std@0.216.0/encoding/hex.ts 1.061 Download https://deno.land/std@0.216.0/regexp/escape.ts 1.061 Download https://deno.land/std@0.216.0/jsonc/mod.ts 1.061 Download https://esm.sh/*preact-render-to-string@6.3.1 1.061 Download https://deno.land/std@0.216.0/assert/mod.ts 1.061 Download https://esm.sh/@babel/helper-validator-identifier@7.22.20 1.061 Download https://deno.land/std@0.216.0/path/posix/mod.ts 1.061 Download https://deno.land/std@0.216.0/testing/snapshot.ts 1.061 Download https://esm.sh/preact@10.22.0 1.061 Download https://deno.land/x/fresh@1.7.2/src/server/rendering/state.ts 1.061 Download https://deno.land/x/fresh@1.7.2/src/server/rendering/template.tsx 1.061 Download https://deno.land/x/fresh@1.7.2/src/server/rendering/fresh_tags.tsx 1.099 Download https://esm.sh/stable/preact@10.22.0/denonext/preact.mjs 1.099 Download https://esm.sh/stable/preact@10.22.0/denonext/jsx-runtime.js 1.099 Download https://esm.sh/v128/preact@10.22.0/jsx-runtime/src/index.d.ts 1.099 Download https://deno.land/x/fresh@1.7.2/src/runtime/head.ts 1.099 Download https://deno.land/x/fresh@1.7.2/src/runtime/Partial.tsx 1.621 Download https://esm.sh/v135/@preact/signals@1.2.2/X-ZS8q/denonext/signals.mjs 1.621 Download https://esm.sh/v135/@preact/signals@1.2.2/X-ZS8q/dist/signals.d.ts 1.621 Download https://deno.land/std@0.216.0/path/windows/mod.ts 1.621 Download https://deno.land/std@0.216.0/path/basename.ts 1.621 Download https://deno.land/std@0.216.0/path/constants.ts 1.621 Download https://deno.land/std@0.216.0/path/dirname.ts 1.621 Download https://deno.land/std@0.216.0/path/extname.ts 1.621 Download https://deno.land/std@0.216.0/path/format.ts 1.621 Download https://deno.land/std@0.216.0/path/from_file_url.ts 1.622 Download https://deno.land/std@0.216.0/path/is_absolute.ts 1.622 Download https://deno.land/std@0.216.0/path/join.ts 1.622 Download https://deno.land/std@0.216.0/path/normalize.ts 1.622 Download https://deno.land/std@0.216.0/path/parse.ts 1.622 Download https://deno.land/std@0.216.0/path/relative.ts 1.622 Download https://deno.land/std@0.216.0/path/resolve.ts 1.622 Download https://deno.land/std@0.216.0/path/to_file_url.ts 1.622 Download https://deno.land/std@0.216.0/path/to_namespaced_path.ts 1.622 Download https://deno.land/std@0.216.0/path/common.ts 1.622 Download https://deno.land/std@0.216.0/path/_interface.ts 1.622 Download https://deno.land/std@0.216.0/path/glob_to_regexp.ts 1.622 Download https://deno.land/std@0.216.0/path/is_glob.ts 1.622 Download https://deno.land/std@0.216.0/path/join_globs.ts 1.622 Download https://deno.land/std@0.216.0/path/normalize_glob.ts 1.622 Download https://deno.land/std@0.216.0/fs/_to_path_string.ts 1.622 Download https://deno.land/std@0.216.0/fs/_create_walk_entry.ts 1.622 Download https://esm.sh/preact@10.22.0/hooks 1.622 Download https://deno.land/x/fresh@1.7.2/src/runtime/build_id.ts 1.622 Download https://deno.land/x/fresh@1.7.2/src/build/esbuild.ts 1.622 Download https://deno.land/x/fresh@1.7.2/src/runtime/active_url.ts 1.622 Download https://deno.land/x/fresh@1.7.2/src/server/default_error_page.tsx 1.622 Download https://deno.land/x/fresh@1.7.2/src/server/init_safe_deps.ts 1.622 Download https://deno.land/std@0.216.0/async/delay.ts 1.622 Download https://deno.land/std@0.216.0/media_types/parse_media_type.ts 1.622 Download https://deno.land/std@0.216.0/media_types/get_charset.ts 1.622 Download https://deno.land/std@0.216.0/media_types/format_media_type.ts 1.622 Download https://deno.land/std@0.216.0/media_types/_db.ts 1.622 Download https://deno.land/std@0.216.0/media_types/type_by_extension.ts 1.622 Download https://deno.land/std@0.216.0/encoding/_util.ts 1.622 Download https://deno.land/std@0.216.0/jsonc/parse.ts 1.622 Download https://esm.sh/v135/preact-render-to-string@6.3.1/X-ZS8q/denonext/preact-render-to-string.mjs 1.622 Download https://esm.sh/v135/preact-render-to-string@6.3.1/X-ZS8q/src/index.d.ts 1.622 Download https://deno.land/std@0.216.0/assert/assert_almost_equals.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_array_includes.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_equals.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_exists.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_false.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_greater_or_equal.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_greater.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_instance_of.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_is_error.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_less_or_equal.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_less.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_match.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_not_equals.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_not_instance_of.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_not_match.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_not_strict_equals.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_object_match.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_rejects.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_strict_equals.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_string_includes.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert_throws.ts 1.623 Download https://deno.land/std@0.216.0/assert/assert.ts 1.623 Download https://deno.land/std@0.216.0/assert/assertion_error.ts 1.623 Download https://deno.land/std@0.216.0/assert/equal.ts 1.623 Download https://deno.land/std@0.216.0/assert/fail.ts 1.623 Download https://deno.land/std@0.216.0/assert/unimplemented.ts 1.623 Download https://deno.land/std@0.216.0/assert/unreachable.ts 1.623 Download https://esm.sh/v135/@babel/helper-validator-identifier@7.22.20/denonext/helper-validator-identifier.mjs 1.623 Download https://esm.sh/v135/@types/babel__helper-validator-identifier@~7/index.d.ts 1.623 Download https://deno.land/std@0.216.0/path/posix/basename.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/constants.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/dirname.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/extname.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/format.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/from_file_url.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/is_absolute.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/join.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/normalize.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/parse.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/relative.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/resolve.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/to_file_url.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/to_namespaced_path.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/common.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/glob_to_regexp.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/is_glob.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/join_globs.ts 1.624 Download https://deno.land/std@0.216.0/path/posix/normalize_glob.ts 1.624 Download https://deno.land/std@0.216.0/fs/ensure_file.ts 1.624 Download https://esm.sh/v128/preact@10.22.0/src/index.d.ts 1.624 Download https://deno.land/x/fresh@1.7.2/src/server/htmlescape.ts 1.624 Download https://deno.land/x/fresh@1.7.2/src/server/serializer.ts 1.692 Download https://esm.sh/v128/preact@10.22.0/src/jsx.d.ts 1.721 Download https://esm.sh/*@preact/signals-core@1.5.1 1.871 Download https://deno.land/std@0.216.0/path/windows/basename.ts 1.871 Download https://deno.land/std@0.216.0/path/windows/constants.ts 1.871 Download https://deno.land/std@0.216.0/path/windows/dirname.ts 1.871 Download https://deno.land/std@0.216.0/path/windows/extname.ts 1.871 Download https://deno.land/std@0.216.0/path/windows/format.ts 1.871 Download https://deno.land/std@0.216.0/path/windows/from_file_url.ts 1.871 Download https://deno.land/std@0.216.0/path/windows/is_absolute.ts 1.871 Download https://deno.land/std@0.216.0/path/windows/join.ts 1.871 Download https://deno.land/std@0.216.0/path/windows/normalize.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/parse.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/relative.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/resolve.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/to_file_url.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/to_namespaced_path.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/common.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/glob_to_regexp.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/is_glob.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/join_globs.ts 1.872 Download https://deno.land/std@0.216.0/path/windows/normalize_glob.ts 1.872 Download https://deno.land/std@0.216.0/path/_os.ts 2.624 Download https://esm.sh/v135/@types/babel__helper-validator-identifier@7.15.2/index.d.ts 2.624 Download https://deno.land/std@0.216.0/path/_common/common.ts 2.624 Download https://deno.land/std@0.216.0/path/_common/glob_to_reg_exp.ts 2.624 Download https://esm.sh/stable/preact@10.22.0/denonext/hooks.js 2.624 Download https://esm.sh/v128/preact@10.22.0/hooks/src/index.d.ts 2.624 Download https://deno.land/x/esbuild@v0.20.2/mod.js 2.624 Download https://deno.land/x/fresh@1.7.2/src/build/deps.ts 2.624 Download https://deno.land/std@0.216.0/media_types/_util.ts 2.624 Download https://deno.land/std@0.216.0/media_types/vendor/mime-db.v1.52.0.ts 2.624 Download https://deno.land/std@0.216.0/json/common.ts 2.624 Download https://deno.land/std@0.216.0/assert/_format.ts 2.624 Download https://deno.land/std@0.216.0/assert/_diff.ts 2.624 Download https://deno.land/std@0.216.0/assert/_constants.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/basename.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/strip_trailing_separators.ts 3.376 Download https://deno.land/std@0.216.0/path/posix/_util.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/dirname.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/constants.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/assert_path.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/format.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/from_file_url.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/normalize.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/normalize_string.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/relative.ts 3.376 Download https://deno.land/std@0.216.0/path/_common/to_file_url.ts 3.376 Download https://deno.land/std@0.216.0/fs/ensure_dir.ts 3.376 Download https://deno.land/std@0.216.0/fs/_get_file_info_type.ts 3.376 Download https://deno.land/x/fresh@1.7.2/src/runtime/deserializer.ts 3.376 Download https://esm.sh/v135/@preact/signals-core@1.5.1/X-ZS8q/denonext/signals-core.mjs 3.377 Download https://esm.sh/v135/@preact/signals-core@1.5.1/X-ZS8q/dist/signals-core.d.ts 3.377 Download https://deno.land/std@0.216.0/path/windows/_util.ts 3.377 Download https://deno.land/x/denoflate@1.2.1/mod.ts 3.377 Download https://deno.land/x/esbuild@v0.20.2/mod.d.ts 3.716 Download https://deno.land/x/denoflate@1.2.1/pkg/denoflate.js 3.716 Download https://deno.land/x/denoflate@1.2.1/pkg/denoflate_bg.wasm.js 3.857 Download https://registry-staging.deno.com/@luca/esbuild-deno-loader/meta.json 4.233 Download https://esm.sh/preact@10.22.0/debug 4.233 Download https://deno.land/x/esbuild@v0.20.2/wasm.js 4.233 Download https://deno.land/x/fresh@1.7.2/plugins/tailwind/compiler.ts 4.337 Download https://esm.sh/stable/preact@10.22.0/denonext/devtools.js 4.337 Download https://esm.sh/stable/preact@10.22.0/denonext/debug.js 4.337 Download https://deno.land/x/esbuild@v0.20.2/wasm.d.ts 4.519 Download https://registry.npmjs.org/postcss 4.519 Download https://registry.npmjs.org/tailwindcss 4.519 Download https://registry.npmjs.org/cssnano 4.519 Download https://registry.npmjs.org/autoprefixer 4.942 Download https://registry.npmjs.org/nanoid 4.942 Download https://registry.npmjs.org/picocolors 4.942 Download https://registry.npmjs.org/source-map-js 5.053 Download https://registry.npmjs.org/cssnano-preset-default 5.053 Download https://registry.npmjs.org/lilconfig 5.132 Download https://registry.npmjs.org/browserslist 5.132 Download https://registry.npmjs.org/caniuse-lite 5.132 Download https://registry.npmjs.org/fraction.js 5.132 Download https://registry.npmjs.org/normalize-range 5.132 Download https://registry.npmjs.org/postcss-value-parser 5.342 Download https://registry.npmjs.org/@alloc/quick-lru 5.342 Download https://registry.npmjs.org/arg 5.343 Download https://registry.npmjs.org/chokidar 5.343 Download https://registry.npmjs.org/didyoumean 5.343 Download https://registry.npmjs.org/dlv 5.343 Download https://registry.npmjs.org/fast-glob 5.343 Download https://registry.npmjs.org/glob-parent 5.343 Download https://registry.npmjs.org/is-glob 5.343 Download https://registry.npmjs.org/jiti 5.343 Download https://registry.npmjs.org/micromatch 5.343 Download https://registry.npmjs.org/normalize-path 5.343 Download https://registry.npmjs.org/object-hash 5.343 Download https://registry.npmjs.org/postcss-import 5.343 Download https://registry.npmjs.org/postcss-js 5.343 Download https://registry.npmjs.org/postcss-load-config 5.343 Download https://registry.npmjs.org/postcss-nested 5.343 Download https://registry.npmjs.org/postcss-selector-parser 5.343 Download https://registry.npmjs.org/resolve 5.343 Download https://registry.npmjs.org/sucrase 5.504 Download https://registry.npmjs.org/css-declaration-sorter 5.504 Download https://registry.npmjs.org/cssnano-utils 5.504 Download https://registry.npmjs.org/postcss-calc 5.504 Download https://registry.npmjs.org/postcss-colormin 5.504 Download https://registry.npmjs.org/postcss-convert-values 5.504 Download https://registry.npmjs.org/postcss-discard-comments 5.504 Download https://registry.npmjs.org/postcss-discard-duplicates 5.504 Download https://registry.npmjs.org/postcss-discard-empty 5.504 Download https://registry.npmjs.org/postcss-discard-overridden 5.504 Download https://registry.npmjs.org/postcss-merge-longhand 5.504 Download https://registry.npmjs.org/postcss-merge-rules 5.504 Download https://registry.npmjs.org/postcss-minify-font-values 5.504 Download https://registry.npmjs.org/postcss-minify-gradients 5.504 Download https://registry.npmjs.org/postcss-minify-params 5.504 Download https://registry.npmjs.org/postcss-minify-selectors 5.504 Download https://registry.npmjs.org/postcss-normalize-charset 5.504 Download https://registry.npmjs.org/postcss-normalize-display-values 5.504 Download https://registry.npmjs.org/postcss-normalize-positions 5.504 Download https://registry.npmjs.org/postcss-normalize-repeat-style 5.504 Download https://registry.npmjs.org/postcss-normalize-string 5.504 Download https://registry.npmjs.org/postcss-normalize-timing-functions 5.504 Download https://registry.npmjs.org/postcss-normalize-unicode 5.504 Download https://registry.npmjs.org/postcss-normalize-url 5.505 Download https://registry.npmjs.org/postcss-normalize-whitespace 5.505 Download https://registry.npmjs.org/postcss-ordered-values 5.505 Download https://registry.npmjs.org/postcss-reduce-initial 5.505 Download https://registry.npmjs.org/postcss-reduce-transforms 5.505 Download https://registry.npmjs.org/postcss-svgo 5.505 Download https://registry.npmjs.org/postcss-unique-selectors 5.614 Download https://registry.npmjs.org/electron-to-chromium 5.614 Download https://registry.npmjs.org/node-releases 5.614 Download https://registry.npmjs.org/update-browserslist-db 5.783 Download https://registry.npmjs.org/anymatch 5.783 Download https://registry.npmjs.org/braces 5.783 Download https://registry.npmjs.org/fsevents 5.783 Download https://registry.npmjs.org/is-binary-path 5.783 Download https://registry.npmjs.org/readdirp 5.830 Download https://registry.npmjs.org/@nodelib/fs.stat 5.830 Download https://registry.npmjs.org/@nodelib/fs.walk 5.830 Download https://registry.npmjs.org/merge2 6.044 Download https://registry.npmjs.org/is-extglob 6.144 Download https://registry.npmjs.org/picomatch 6.201 Download https://registry.npmjs.org/read-cache 6.250 Download https://registry.npmjs.org/camelcase-css 6.292 Download https://registry.npmjs.org/ts-node 6.292 Download https://registry.npmjs.org/yaml 6.351 Download https://registry.npmjs.org/cssesc 6.351 Download https://registry.npmjs.org/util-deprecate 6.405 Download https://registry.npmjs.org/is-core-module 6.405 Download https://registry.npmjs.org/path-parse 6.405 Download https://registry.npmjs.org/supports-preserve-symlinks-flag 6.464 Download https://registry.npmjs.org/@jridgewell/gen-mapping 6.464 Download https://registry.npmjs.org/commander 6.464 Download https://registry.npmjs.org/glob 6.464 Download https://registry.npmjs.org/lines-and-columns 6.464 Download https://registry.npmjs.org/mz 6.464 Download https://registry.npmjs.org/pirates 6.464 Download https://registry.npmjs.org/ts-interface-checker 6.544 Download https://registry.npmjs.org/caniuse-api 6.544 Download https://registry.npmjs.org/colord 6.596 Download https://registry.npmjs.org/stylehacks 6.641 Download https://registry.npmjs.org/svgo 6.701 Download https://registry.npmjs.org/escalade 6.742 Download https://registry.npmjs.org/fill-range 6.790 Download https://registry.npmjs.org/binary-extensions 6.821 Download https://registry.npmjs.org/@nodelib/fs.scandir 6.821 Download https://registry.npmjs.org/fastq 6.908 Download https://registry.npmjs.org/pify 6.956 Download https://registry.npmjs.org/hasown 7.049 Download https://registry.npmjs.org/@jridgewell/set-array 7.049 Download https://registry.npmjs.org/@jridgewell/sourcemap-codec 7.049 Download https://registry.npmjs.org/@jridgewell/trace-mapping 7.132 Download https://registry.npmjs.org/foreground-child 7.132 Download https://registry.npmjs.org/jackspeak 7.132 Download https://registry.npmjs.org/minimatch 7.132 Download https://registry.npmjs.org/minipass 7.132 Download https://registry.npmjs.org/package-json-from-dist 7.133 Download https://registry.npmjs.org/path-scurry 7.279 Download https://registry.npmjs.org/any-promise 7.279 Download https://registry.npmjs.org/object-assign 7.279 Download https://registry.npmjs.org/thenify-all 7.328 Download https://registry.npmjs.org/lodash.memoize 7.328 Download https://registry.npmjs.org/lodash.uniq 7.381 Download https://registry.npmjs.org/@trysound/sax 7.381 Download https://registry.npmjs.org/css-select 7.381 Download https://registry.npmjs.org/css-tree 7.381 Download https://registry.npmjs.org/css-what 7.381 Download https://registry.npmjs.org/csso 7.496 Download https://registry.npmjs.org/to-regex-range 7.549 Download https://registry.npmjs.org/run-parallel 7.598 Download https://registry.npmjs.org/reusify 7.652 Download https://registry.npmjs.org/function-bind 7.692 Download https://registry.npmjs.org/@jridgewell/resolve-uri 7.751 Download https://registry.npmjs.org/cross-spawn 7.751 Download https://registry.npmjs.org/signal-exit 7.797 Download https://registry.npmjs.org/@isaacs/cliui 7.797 Download https://registry.npmjs.org/@pkgjs/parseargs 8.361 Download https://registry.npmjs.org/brace-expansion 8.425 Download https://registry.npmjs.org/lru-cache 8.476 Download https://registry.npmjs.org/thenify 8.528 Download https://registry.npmjs.org/boolbase 8.528 Download https://registry.npmjs.org/domhandler 8.528 Download https://registry.npmjs.org/domutils 8.528 Download https://registry.npmjs.org/nth-check 8.576 Download https://registry.npmjs.org/mdn-data 8.670 Download https://registry.npmjs.org/is-number 8.762 Download https://registry.npmjs.org/queue-microtask 8.820 Download https://registry.npmjs.org/path-key 8.820 Download https://registry.npmjs.org/shebang-command 8.820 Download https://registry.npmjs.org/which 8.872 Download https://registry.npmjs.org/string-width 8.872 Download https://registry.npmjs.org/strip-ansi 8.872 Download https://registry.npmjs.org/wrap-ansi 9.057 Download https://registry.npmjs.org/balanced-match 9.091 Download https://registry.npmjs.org/domelementtype 9.139 Download https://registry.npmjs.org/dom-serializer 9.184 Download https://registry.npmjs.org/shebang-regex 9.247 Download https://registry.npmjs.org/isexe 9.292 Download https://registry.npmjs.org/eastasianwidth 9.292 Download https://registry.npmjs.org/emoji-regex 9.406 Download https://registry.npmjs.org/is-fullwidth-code-point 9.460 Download https://registry.npmjs.org/ansi-regex 9.508 Download https://registry.npmjs.org/ansi-styles 9.635 Download https://registry.npmjs.org/entities 9.675 Download https://registry.npmjs.org/color-convert 9.715 Download https://registry.npmjs.org/color-name 9.772 Download https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz 9.856 Initialize ansi-regex@6.1.0 9.964 error: Import 'https://registry-staging.deno.com/@luca/esbuild-deno-loader/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@luca/esbuild-deno-loader/meta.json): error trying to connect: dns error: failed to lookup address information: Name or service not known 9.964 at https://deno.land/x/fresh@1.7.2/src/build/deps.ts:9:29 ------ Dockerfile:9 -------------------- 7 | 8 | COPY . . 9 | >>> RUN deno cache main.ts 10 | 11 | EXPOSE 8000 -------------------- ERROR: failed to solve: process "/bin/sh -c deno cache main.ts" did not complete successfully: exit code: 1 ```

nvm switched to denoland/deno:2.0.0 and all is fine.