Merge pull request #138 from yaziming/develop

升级 alpine master node Dockerfile
This commit is contained in:
Marvin Zhang
2019-08-16 15:46:44 +08:00
committed by GitHub

View File

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