Dockerfile 685 B

123456789101112131415161718192021222324252627282930313233
  1. From python:3.9
  2. MAINTAINER Liufan<1649750212@qq.com>
  3. COPY . /code
  4. WORKDIR /code
  5. RUN apt-get install -y 'g++'
  6. RUN apt-get install -y openssl libssl-dev
  7. RUN apt-get install -y libpcre3 libpcre3-dev
  8. RUN apt-get install -y zlib1g-dev
  9. RUN apt-get install -y make
  10. RUN cd nginx-1.21.3 && ./configure --prefix=/usr/local/nginx && make && make install
  11. RUN cd ..
  12. COPY dist/ /usr/share/nginx/html/
  13. COPY nginx.conf /usr/local/nginx/conf
  14. EXPOSE 8002
  15. ENTRYPOINT /usr/local/nginx/sbin/nginx && tail -f /etc/passwd
  16. #from nginx
  17. #MAINTAINER Liufan<1649750212@qq.com>
  18. #COPY dist/ /usr/share/nginx/html/
  19. #COPY nginx.conf /usr/local/nginx/conf
  20. #EXPOSE 8002
  21. #CMD ["nginx", "-g", "daemon off;"]