From add513537c59d6b33d6d60197e91b29b152298a7 Mon Sep 17 00:00:00 2001 From: tabliang Date: Thu, 17 Sep 2020 18:03:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20denon=20=E6=9E=84=E5=BB=BA=E7=8E=AF?= =?UTF-8?q?=E8=8A=82=E9=9B=86=E6=88=90=E5=88=B0=20dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/framework-plugin-deno/assets/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/framework-plugin-deno/assets/Dockerfile b/packages/framework-plugin-deno/assets/Dockerfile index c74000d37..080bfceb0 100644 --- a/packages/framework-plugin-deno/assets/Dockerfile +++ b/packages/framework-plugin-deno/assets/Dockerfile @@ -14,6 +14,8 @@ 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 mkdir dist +RUN denon build <% if (entry) { %> RUN deno install <%= entry %> <% } %> From 136b7be7512de31edcaa8aa8d0fcecbe5bcbe44a Mon Sep 17 00:00:00 2001 From: tabliang Date: Thu, 17 Sep 2020 18:13:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20deno=20=E6=9E=84=E5=BB=BA=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E7=A7=BB=E9=99=A4=E9=9D=9E=E5=BF=85=E8=A6=81=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/framework-plugin-deno/README.md | 4 +++- packages/framework-plugin-deno/assets/Dockerfile | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) 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 080bfceb0..c774a2766 100644 --- a/packages/framework-plugin-deno/assets/Dockerfile +++ b/packages/framework-plugin-deno/assets/Dockerfile @@ -14,7 +14,6 @@ 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 mkdir dist RUN denon build <% if (entry) { %> RUN deno install <%= entry %>