|
@ -1,5 +1,5 @@ |
|
|
#FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
|
|
#FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
|
|
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12 |
|
|
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
|
|
COPY . /var/app |
|
|
COPY . /var/app |
|
|
WORKDIR /var/app |
|
|
WORKDIR /var/app |
|
|
EXPOSE 8080 |
|
|
EXPOSE 8080 |
|
@ -20,7 +20,7 @@ RUN apk update && apk add --no-cache \ |
|
|
RUN npm config set registry=http://10.8.30.22:7000 |
|
|
RUN npm config set registry=http://10.8.30.22:7000 |
|
|
RUN npm cache clean -f |
|
|
RUN npm cache clean -f |
|
|
#RUN npm install -g node-gyp |
|
|
#RUN npm install -g node-gyp |
|
|
#RUN rm -rf package-lock.json |
|
|
RUN rm -rf package-lock.json |
|
|
RUN npm install --registry http://10.8.30.22:7000 |
|
|
RUN npm install --registry http://10.8.30.22:7000 |
|
|
RUN npm run build |
|
|
RUN npm run build |
|
|
RUN rm -rf client/src |
|
|
RUN rm -rf client/src |
|
|