From d7880225502cd63b9620d9629719a54f46e80827 Mon Sep 17 00:00:00 2001 From: Kristian Freeman Date: Fri, 11 Oct 2019 12:22:20 -0500 Subject: [PATCH] Use node docker image --- Dockerfile | 2 +- entrypoint.sh | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index b172cf3..27da3f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM ubuntu:latest +FROM node:10.14.1-alpine COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index efc72f6..6d539e0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 @cloudflare/wrangler -g wrangler whoami