1
FROM repo.huitouche.com.cn/alpine-python
MAINTAINER Docker huitouche.com
ENV GUNICORN_WORKERS=4
COPY ./ /src/
RUN pip3 install --upgrade -r /src/requirements.txt -i http://mirrors.aliyun.com/pypi/simple/
WORKDIR /src
EXPOSE 80
CMD gunicorn -c gunicorn.conf server:app
2
FROM 192.168.10.139:5000/alpine-python:edge3.6
MAINTAINER Docker huitouche.com
ENV GUNICORN_WORKERS=2
COPY ./ /src/
RUN pip3 install --upgrade -r /src/requirements.txt -i https://pypi.douban.com/simple
WORKDIR /src
EXPOSE 80
CMD gunicorn -c gunicorn.conf server:app
3
FROM 192.168.10.139:5000/tomcat:9.0-jre8-alpine
MAINTAINER Docker huitouche.com
ENV APP_WEB_FOLDER=HTCWeb
COPY ./target/$APP_WEB_FOLDER/ /usr/local/tomcat/webapps/$APP_WEB_FOLDER/
VOLUME [ "/var/log","/usr/local/tomcat/shared/lib" ]
4
FROM scrapinghub/base:12.04
RUN apt-get update -qq &&\
apt-get install -qy python-software-properties nginx
# nodejs
RUN apt-add-repository ppa:chris-lea/node.js &&\
apt-get update -qq &&\
apt-get install -qy nodejs
# Install python stuff.
ADD requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
EXPOSE 9001
ADD . /app
RUN ln -sf /app/nginx/nginx.conf /etc/nginx/nginx.conf
RUN pip install -e /app/slybot
WORKDIR /app/slyd
# TODO(dangra): fix handling of nginx service, it won't be restarted in case if crashed.
CMD service nginx start; twistd --pidfile=/tmp/twistd.pid -n slyd -p 9002
5
FROM scrapinghub/base:12.04
RUN apt-get update -qq &&\
apt-get install -qy python-software-properties nginx git
# nodejs
RUN apt-add-repository ppa:chris-lea/node.js &&\
apt-get update -qq &&\
apt-get install -qy nodejs
# Install python stuff.
ADD requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
EXPOSE 9001
ADD . /app
RUN ln -sf /app/nginx/nginx.conf /etc/nginx/nginx.conf
RUN pip install -e /app/slybot
WORKDIR /app/slyd
# TODO(dangra): fix handling of nginx service, it won't be restarted in case if crashed.
CMD service nginx start; twistd --pidfile=/tmp/twistd.pid -n slyd -p 9002
网友评论