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 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