Skip to content

Commit

Permalink
Using prefetch to speed up build
Browse files Browse the repository at this point in the history
  • Loading branch information
manyuanrong committed Mar 11, 2019
1 parent 0513976 commit e126011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -17,10 +17,10 @@ before_install:
- export PATH="/home/travis/.deno/bin:$PATH"

script:
- export DENO_DIR="$PWD/cache"
- deno ./server.ts --prefetch
- deno ./test.ts --allow-all
- docker build ./ -t denocn/website
- docker run -d -p 3000:3000 denocn/website
- curl http://127.0.0.1:3000
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push denocn/website

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -3,6 +3,6 @@ MAINTAINER manyuanrong "416828041@qq.com"

COPY ./ /data/
WORKDIR /data
RUN deno ./server.ts --prefetch
ENV DENO_DIR=/data/cache

CMD [ "deno", "./server.ts", "--allow-all" ]

0 comments on commit e126011

Please sign in to comment.