|
@ -25,12 +25,14 @@ |
|
|
|
|
|
|
|
|
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
|
|
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
|
|
|
|
|
|
|
|
|
|
|
MAINTAINER liuxinyi "liu.xinyi@free-sun.com.cn" |
|
|
|
|
|
|
|
|
COPY . /var/app |
|
|
COPY . /var/app |
|
|
|
|
|
|
|
|
WORKDIR /var/app |
|
|
WORKDIR /var/app |
|
|
|
|
|
|
|
|
EXPOSE 8080 |
|
|
RUN npm cache clean -f && npm install --production --force --registry http://10.8.30.22:7000 |
|
|
|
|
|
|
|
|
CMD ["-u", "http://localhost:8088"] |
|
|
RUN rm -rf package-lock.json |
|
|
|
|
|
|
|
|
ENTRYPOINT [ "node", "server.js" ] |
|
|
CMD [ "node", "server.js" ] |