云计算课程实验
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
565 B

  1. # start from base
  2. FROM ubuntu:18.04
  3. LABEL maintainer="Prakhar Srivastav <prakhar@prakhar.me>"
  4. # install system-wide deps for python and node
  5. RUN apt-get -yqq update
  6. RUN apt-get -yqq install python3-pip python3-dev curl gnupg
  7. RUN curl -sL https://deb.nodesource.com/setup_10.x | bash
  8. RUN apt-get install -yq nodejs
  9. # copy our application code
  10. ADD flask-app /opt/flask-app
  11. WORKDIR /opt/flask-app
  12. # fetch app specific deps
  13. RUN npm install
  14. RUN npm run build
  15. RUN pip3 install -r requirements.txt
  16. # expose port
  17. EXPOSE 5000
  18. # start app
  19. CMD [ "python3", "./app.py" ]