-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When trying to build a simple Dockerfile with Denon, I get an error on a dependency
To Reproduce
Try to build this Dockerfile. main.ts contains a simple console.log.
FROM denoland/deno:2.4.5
# The port that your application listens to.
EXPOSE 1993
WORKDIR /app
COPY . .
RUN deno install --global --allow-read --allow-run --allow-write --allow-net https://deno.land/x/denon@v2.2.0/denon.ts
RUN /usr/local/bin/denon main.ts
Expected behavior
denon starts, or at least gives me an error.
Actual behavior
Getting this error
#9 [5/5] RUN /usr/local/bin/denon main.ts
#9 0.475 error: Uncaught SyntaxError: The requested module './_yaml/parse.ts' does not provide an export named 'ParseOptions'
#9 0.475 export { ParseOptions, parse, parseAll } from "./_yaml/parse.ts";
#9 0.475 ^
#9 0.475 at <anonymous> (https://deno.land/std@0.57.0/encoding/yaml.ts:6:10)
#9 ERROR: process "/bin/sh -c /usr/local/bin/denon main.ts" did not complete successfully: exit code: 1
Running denon locally does not give me this error.
Complete build log:
docker build . --no-cache --progress=plain
#0 building with "orbstack" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 DONE 0.0s
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 301B done
#1 DONE 0.0s
#2 [internal] load metadata for docker.io/denoland/deno:2.4.5
#2 DONE 0.3s
#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s
#4 [1/5] FROM docker.io/denoland/deno:2.4.5@sha256:d0f3854232ab56efe1ed8af32a6042fce67f75027c4f473e7543ae15a19d0fd6
#4 DONE 0.0s
#5 [2/5] WORKDIR /app
#5 CACHED
#6 [internal] load build context
#6 transferring context: 327B done
#6 DONE 0.0s
#7 [3/5] COPY . .
#7 DONE 0.4s
#8 [4/5] RUN deno install --global --allow-read --allow-run --allow-write --allow-net https://deno.land/x/denon@v2.2.0/denon.ts
#8 0.301 Download https://deno.land/x/denon@v2.2.0/denon.ts
#8 0.425 Download https://deno.land/x/denon@v2.2.0/deps.ts
#8 0.425 Download https://deno.land/x/denon@v2.2.0/src/watcher.ts
#8 0.425 Download https://deno.land/x/denon@v2.2.0/src/runner.ts
#8 0.425 Download https://deno.land/x/denon@v2.2.0/src/daemon.ts
#8 0.425 Download https://deno.land/x/denon@v2.2.0/src/cli.ts
#8 0.425 Download https://deno.land/x/denon@v2.2.0/src/config.ts
#8 0.425 Download https://deno.land/x/denon@v2.2.0/src/args.ts
#8 0.425 Download https://deno.land/x/denon@v2.2.0/src/log.ts
#8 0.471 Download https://deno.land/std@0.57.0/log/mod.ts
#8 0.471 Download https://deno.land/std@0.57.0/log/logger.ts
#8 0.471 Download https://deno.land/std@0.57.0/log/levels.ts
#8 0.471 Download https://deno.land/std@0.57.0/log/handlers.ts
#8 0.471 Download https://deno.land/std@0.57.0/fmt/colors.ts
#8 0.471 Download https://deno.land/std@0.57.0/fs/mod.ts
#8 0.471 Download https://deno.land/std@0.57.0/encoding/yaml.ts
#8 0.471 Download https://deno.land/std@0.57.0/path/mod.ts
#8 0.471 Download https://deno.land/std@0.57.0/fs/read_json.ts
#8 0.472 Download https://deno.land/std@0.57.0/fs/write_json.ts
#8 0.473 Download https://deno.land/std@0.57.0/async/mod.ts
#8 0.473 Download https://deno.land/std@0.57.0/permissions/mod.ts
#8 0.473 Download https://deno.land/x/omelette/omelette.ts
#8 0.473 Download https://deno.land/x/denon@v2.2.0/src/scripts.ts
#8 0.473 Download https://deno.land/x/denon@v2.2.0/src/merge.ts
#8 0.518 Download https://deno.land/std@0.57.0/_util/assert.ts
#8 0.524 Download https://deno.land/std@0.57.0/fs/exists.ts
#8 0.524 Download https://deno.land/std@0.57.0/io/bufio.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/empty_dir.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/ensure_dir.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/ensure_file.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/ensure_link.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/ensure_symlink.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/expand_glob.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/move.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/copy.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/read_file_str.ts
#8 0.525 Download https://deno.land/std@0.57.0/fs/write_file_str.ts
#8 0.526 Download https://deno.land/std@0.57.0/fs/walk.ts
#8 0.526 Download https://deno.land/std@0.57.0/fs/eol.ts
#8 0.526 Download https://deno.land/std@0.57.0/encoding/_yaml/parse.ts
#8 0.527 Download https://deno.land/std@0.57.0/encoding/_yaml/stringify.ts
#8 0.527 Download https://deno.land/std@0.57.0/encoding/_yaml/schema.ts
#8 0.527 Download https://deno.land/std@0.57.0/encoding/_yaml/type.ts
#8 0.528 Download https://deno.land/std@0.57.0/encoding/_yaml/schema/mod.ts
#8 0.528 Download https://deno.land/std@0.57.0/path/_constants.ts
#8 0.528 Download https://deno.land/std@0.57.0/path/win32.ts
#8 0.528 Download https://deno.land/std@0.57.0/path/posix.ts
#8 0.528 Download https://deno.land/std@0.57.0/path/common.ts
#8 0.528 Download https://deno.land/std@0.57.0/path/separator.ts
#8 0.528 Download https://deno.land/std@0.57.0/path/_interface.ts
#8 0.528 Download https://deno.land/std@0.57.0/path/glob.ts
#8 0.528 Download https://deno.land/std@0.57.0/async/deferred.ts
#8 0.528 Download https://deno.land/std@0.57.0/async/delay.ts
#8 0.528 Download https://deno.land/std@0.57.0/async/mux_async_iterator.ts
#8 0.760 Warning Implicitly using latest version (v0.4.17) for https://deno.land/x/omelette/omelette.ts
#8 0.762 Download https://deno.land/x/omelette@v0.4.17/omelette.ts
#8 0.762 Download https://deno.land/std@0.57.0/io/util.ts
#8 0.762 Download https://deno.land/std@0.57.0/fs/_util.ts
#8 0.762 Download https://deno.land/std@0.57.0/encoding/_yaml/loader/loader.ts
#8 0.762 Download https://deno.land/std@0.57.0/encoding/_yaml/loader/loader_state.ts
#8 0.762 Download https://deno.land/std@0.57.0/encoding/_yaml/dumper/dumper.ts
#8 0.762 Download https://deno.land/std@0.57.0/encoding/_yaml/dumper/dumper_state.ts
#8 0.762 Download https://deno.land/std@0.57.0/encoding/_yaml/error.ts
#8 0.763 Download https://deno.land/std@0.57.0/encoding/_yaml/utils.ts
#8 0.763 Download https://deno.land/std@0.57.0/encoding/_yaml/schema/core.ts
#8 0.764 Download https://deno.land/std@0.57.0/encoding/_yaml/schema/default.ts
#8 0.764 Download https://deno.land/std@0.57.0/encoding/_yaml/schema/failsafe.ts
#8 0.765 Download https://deno.land/std@0.57.0/encoding/_yaml/schema/json.ts
#8 0.765 Download https://deno.land/std@0.57.0/path/_util.ts
#8 0.766 Download https://deno.land/std@0.57.0/path/_globrex.ts
#8 0.801 Download https://deno.land/std@0.61.0/node/events.ts
#8 0.801 Download https://deno.land/std@0.61.0/path/mod.ts
#8 0.844 Download https://deno.land/std@0.57.0/encoding/_yaml/mark.ts
#8 0.844 Download https://deno.land/std@0.57.0/encoding/_yaml/state.ts
#8 0.844 Download https://deno.land/std@0.57.0/encoding/_yaml/type/mod.ts
#8 0.844 Download https://deno.land/std@0.61.0/node/util.ts
#8 0.845 Download https://deno.land/std@0.61.0/_util/assert.ts
#8 0.845 Download https://deno.land/std@0.61.0/path/_constants.ts
#8 0.845 Download https://deno.land/std@0.61.0/path/win32.ts
#8 0.846 Download https://deno.land/std@0.61.0/path/posix.ts
#8 0.846 Download https://deno.land/std@0.61.0/path/common.ts
#8 0.847 Download https://deno.land/std@0.61.0/path/separator.ts
#8 0.847 Download https://deno.land/std@0.61.0/path/_interface.ts
#8 0.847 Download https://deno.land/std@0.61.0/path/glob.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/binary.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/bool.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/float.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/int.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/map.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/merge.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/nil.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/omap.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/pairs.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/seq.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/set.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/str.ts
#8 0.897 Download https://deno.land/std@0.57.0/encoding/_yaml/type/timestamp.ts
#8 0.897 Download https://deno.land/std@0.61.0/node/_util/_util_promisify.ts
#8 0.897 Download https://deno.land/std@0.61.0/node/_util/_util_callbackify.ts
#8 0.897 Download https://deno.land/std@0.61.0/node/_util/_util_types.ts
#8 0.897 Download https://deno.land/std@0.61.0/node/_utils.ts
#8 0.897 Download https://deno.land/std@0.61.0/path/_util.ts
#8 0.899 Download https://deno.land/std@0.61.0/path/_globrex.ts
#8 0.964 β
Successfully installed denon
#8 0.964 /usr/local/bin/denon
#8 DONE 1.1s
#9 [5/5] RUN /usr/local/bin/denon main.ts
#9 0.475 error: Uncaught SyntaxError: The requested module './_yaml/parse.ts' does not provide an export named 'ParseOptions'
#9 0.475 export { ParseOptions, parse, parseAll } from "./_yaml/parse.ts";
#9 0.475 ^
#9 0.475 at <anonymous> (https://deno.land/std@0.57.0/encoding/yaml.ts:6:10)
#9 ERROR: process "/bin/sh -c /usr/local/bin/denon main.ts" did not complete successfully: exit code: 1
------
> [5/5] RUN /usr/local/bin/denon main.ts:
0.475 error: Uncaught SyntaxError: The requested module './_yaml/parse.ts' does not provide an export named 'ParseOptions'
0.475 export { ParseOptions, parse, parseAll } from "./_yaml/parse.ts";
0.475 ^
0.475 at <anonymous> (https://deno.land/std@0.57.0/encoding/yaml.ts:6:10)
------
Dockerfile:12
--------------------
10 | RUN deno install --global --allow-read --allow-run --allow-write --allow-net https://deno.land/x/denon@v2.2.0/denon.ts
11 |
12 | >>> RUN /usr/local/bin/denon main.ts
13 |
--------------------
ERROR: failed to solve: process "/bin/sh -c /usr/local/bin/denon main.ts" did not complete successfully: exit code: 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working