Skip to content

Commit

Permalink
Merge pull request #87 from TabSpace/master
Browse files Browse the repository at this point in the history
denon 构建环节集成到 dockerfile
  • Loading branch information
binggg authored Sep 17, 2020
2 parents b4c584f + 136b7be commit ba78fe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/framework-plugin-deno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/framework-plugin-deno/assets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
<% } %>
Expand Down

0 comments on commit ba78fe5

Please sign in to comment.