123456789101112131415161718192021222324252627282930313233 |
- 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 8002
- ENTRYPOINT /usr/local/nginx/sbin/nginx && tail -f /etc/passwd
- #from nginx
- #MAINTAINER Liufan<1649750212@qq.com>
- #COPY dist/ /usr/share/nginx/html/
- #COPY nginx.conf /usr/local/nginx/conf
- #EXPOSE 8002
- #CMD ["nginx", "-g", "daemon off;"]
|