From a6137c540c11c714b469aba543c1f602edceaab9 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 2 Jun 2019 17:33:22 -0400 Subject: [PATCH] Add fix for npm install -g failing --- .drone.yml | 7 ------- Dockerfile | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index a2d305c..cbedf7e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,13 +6,6 @@ platform: arch: amd64 steps: - - name: build-static - image: mhart/alpine-node:latest - commands: - - npm install -g @vue/cli - - cd joker - - npm install - - npm run build - name: docker image: plugins/docker settings: diff --git a/Dockerfile b/Dockerfile index 50b6cf5..0482cee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN cd /src && go get -d && go build -o joker-bin FROM node:alpine AS static-env ADD . /app +RUN npm config set unsafe-perm true RUN npm install -g @vue/cli && cd /app/joker && npm install && npm run build FROM alpine:3.7