Dockerfile 315 B

12345678910111213141516
  1. FROM node:16
  2. WORKDIR /home/fc
  3. COPY package*.json ./
  4. RUN npm install
  5. COPY build ./build
  6. COPY config ./conf
  7. COPY test.sh ./
  8. RUN mkdir ./config/
  9. RUN chmod +x ./test.sh
  10. # 容器对外暴露的端口号
  11. EXPOSE 8090
  12. ENTRYPOINT ["./test.sh" ]
  13. # 容器启动时执行的命令,类似npm run start
  14. #CMD ["npm", "start"]