From b01b282a6967753e2764d3ece53f0ee8e659f49f Mon Sep 17 00:00:00 2001 From: hugoalh Date: Sat, 7 Sep 2024 18:04:11 +0800 Subject: [PATCH] Fix dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 159305ae..b52cc0ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,5 +8,5 @@ RUN apt-get --assume-yes update && apt-get --assume-yes dist-upgrade && apt-get COPY --from=denoland/deno:bin-1.46.3 /deno /opt/denoland/deno/deno RUN chmod +x /opt/denoland/deno/deno && ln -s /opt/denoland/deno/deno /usr/bin/deno COPY _color_namespace_list.ts _fswalk.ts _parameter.ts _payload.ts _random_integer.ts deno.jsonc mod.ts ${APP_ROOT}/ -RUN cd $APP_ROOT && deno vendor mod.ts -CMD deno run --allow-env --allow-net=discord.com --allow-read --allow-write --import-map=$APP_ROOT/vendor/import_map.json --no-config $APP_ROOT/mod.ts +RUN cd $APP_ROOT && deno cache mod.ts +CMD deno run --allow-env --allow-net=discord.com --allow-read --allow-write --cached-only --config=$APP_ROOT/deno.jsonc $APP_ROOT/mod.ts