12345678910111213141516171819202122 |
- FROM python:3.9
- MAINTAINER Liufan<1649750212@qq.com>
- COPY . /code
- WORKDIR /code
- RUN apt-get install -y 'g++'
- RUN apt-get install -y openssl libssl-dev
- RUN apt-get install -y libpcre3 libpcre3-dev
- RUN apt-get install -y zlib1g-dev
- RUN apt-get install -y make
- RUN cd nginx-1.21.3 && ./configure --prefix=/usr/local/nginx && make && make install
- RUN cd ..
- COPY dist/ /usr/share/nginx/html/
- COPY nginx.conf /usr/local/nginx/conf
- EXPOSE 9360
- ENTRYPOINT /usr/local/nginx/sbin/nginx && tail -f /etc/passwd
|