Dockerfile 369 Bytes
Newer Older
黄贤军's avatar
黄贤军 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
FROM 47.110.145.204:8084/huansi/node:slim as build

COPY . .

RUN cnpm install --force && npm run build

FROM node:slim

WORKDIR /huansi_app

COPY --from=build /huansi_app/server /huansi_app

COPY --from=build /huansi_app/dist /huansi_app/dist

RUN npm install --registry https://registry.npm.taobao.org && npm install debug --save

EXPOSE 8000

CMD [ "npm", "start" ]