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