From ecd7fdbf4555accac4d7ce58010502786a89b4bf Mon Sep 17 00:00:00 2001 From: yaziming Date: Fri, 16 Aug 2019 14:30:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=8F=82=E6=95=B0=EF=BC=9ANPM=5FDISABLE=5FSAFE=5FPERM=20?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E6=98=AF=E5=90=A6=E5=90=AF=E7=94=A8=E4=B8=8D?= =?UTF-8?q?=E9=AA=8C=E8=AF=81npm=E8=AF=81=E4=B9=A6=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E6=9D=A5=E8=A7=A3=E5=86=B3=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E7=8E=AF=E5=A2=83=E4=B8=8Bnpm=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=20true:=E5=BC=80=E5=90=AF?= =?UTF-8?q?=20false:=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 升级node8.0 到 lts版本(10.x) --- docker/Dockerfile.master.alpine | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.master.alpine b/docker/Dockerfile.master.alpine index d6fc4ba2..6979861b 100644 --- a/docker/Dockerfile.master.alpine +++ b/docker/Dockerfile.master.alpine @@ -8,7 +8,15 @@ ENV GOPROXY https://mirrors.aliyun.com/goproxy/ RUN go install -v ./... -FROM node:8.16.0-alpine AS frontend-build +FROM node:lts-alpine AS frontend-build + +ARG NPM_DISABLE_SAFE_PERM=false +RUN if [ ${NPM_DISABLE_SAFE_PERM} = true ]; then \ + # run the install + echo "info: use npm unsafe-perm mode" \ + && npm config set unsafe-perm true \ +;fi + ADD ./frontend /app WORKDIR /app From 37d13b265cc6268f4916bc9e8d2db65db7436b6e Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sun, 18 Aug 2019 09:13:36 +0800 Subject: [PATCH 2/2] updated README --- README-zh.md | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README-zh.md b/README-zh.md index e72065b0..7194f987 100644 --- a/README-zh.md +++ b/README-zh.md @@ -4,6 +4,7 @@ ![](https://img.shields.io/github/release/tikazyq/crawlab.svg) ![](https://img.shields.io/github/last-commit/tikazyq/crawlab.svg) ![](https://img.shields.io/github/issues/tikazyq/crawlab.svg) +![](https://img.shields.io/docker/pulls/tikazyq/crawlab) ![](https://img.shields.io/github/license/tikazyq/crawlab.svg) 中文 | [English](https://github.com/tikazyq/crawlab) diff --git a/README.md b/README.md index f8c550bd..94221862 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ ![](https://img.shields.io/github/release/tikazyq/crawlab.svg) ![](https://img.shields.io/github/last-commit/tikazyq/crawlab.svg) ![](https://img.shields.io/github/issues/tikazyq/crawlab.svg) +![](https://img.shields.io/docker/pulls/tikazyq/crawlab) ![](https://img.shields.io/github/license/tikazyq/crawlab.svg) [中文](https://github.com/tikazyq/crawlab/blob/master/README-zh.md) | English