周沫沫历险记 2 years ago
parent
commit
c796ce2645
  1. 8
      api/Dockerfile

8
api/Dockerfile

@ -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" ]
Loading…
Cancel
Save