Use node docker image

This commit is contained in:
Kristian Freeman 2019-10-11 12:22:20 -05:00
parent 3dc1bddb46
commit d788022550
2 changed files with 4 additions and 6 deletions

View file

@ -1,3 +1,3 @@
FROM ubuntu:latest FROM node:10.14.1-alpine
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

View file

@ -1,9 +1,7 @@
#!/bin/sh -l #!/bin/sh
set -e
apt-get update -y
apt-get install curl -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | sh
nvm install latest
npm i npm i
npm i @cloudflare/wrangler -g npm i @cloudflare/wrangler -g
wrangler whoami wrangler whoami