diff --git a/packages/framework-plugin-deno/README.md b/packages/framework-plugin-deno/README.md index 0c11c2967..7ae488e4a 100644 --- a/packages/framework-plugin-deno/README.md +++ b/packages/framework-plugin-deno/README.md @@ -101,7 +101,9 @@ denon 配置示例: # denon.yml scripts: build: - cmd: deno bundle src/entry.ts dist/entry.js + cmd: + - mkdir dist + - deno bundle src/entry.ts dist/entry.js watch: false start: cmd: deno run dist/entry.js diff --git a/packages/framework-plugin-deno/assets/Dockerfile b/packages/framework-plugin-deno/assets/Dockerfile index c74000d37..c774a2766 100644 --- a/packages/framework-plugin-deno/assets/Dockerfile +++ b/packages/framework-plugin-deno/assets/Dockerfile @@ -14,6 +14,7 @@ EXPOSE 80 WORKDIR /app COPY . . RUN deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/denon/denon.ts +RUN denon build <% if (entry) { %> RUN deno install <%= entry %> <% } %>