Dockerfile 507 B

12345678910111213141516171819202122
  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 9360
  15. ENTRYPOINT /usr/local/nginx/sbin/nginx && tail -f /etc/passwd