我的Docker容器以exitcode = 30

时间:2019-02-01 11:45:35

标签: dockerfile uwsgi

我有一个dockerfile来构建一个容器。 构建后,我运行my_container(UWSGI正常工作,我检查容器的退出代码,始终为0),然后停止容器。我检查容器的退出代码,总是得到30。我无法理解我的问题以及它的特殊错误。能否请你帮忙。这是我的dockerfile。我添加了停止信号,但没有帮助我

FROM python:2.7

# install build-essential to compile uWSGI
RUN apt-get update \
   && apt-get install -y build-essential python-dev \
   && rm -rf /var/lib/apt/lists/* \
   && pip install uwsgi \
   && mkdir /var/log/qwerty

# copy source into place
COPY . /app/

# install dependancies
Run pip install -r /app/requirements/dev.txt
# install the package
RUN pip install -e /app

WORKDIR /app
STOPSIGNAL SIGINT
ENTRYPOINT [ "uwsgi", \
   "--http", "0.0.0.0:5000", \
   "--module", "qwerty.wsgi:app", \
   "--processes", "1", \
   "--threads", "8", \
   "--if-env", "QWERTY_FLASK_CONFIGURATION", \
   "--logto", "/var/log/qwerty/qwerty_request.log", \
   "--logformat",  "{\"timestamp\": \"%(ltime)\", \"pid\": \"%(pid)\", 
\"app\": \"%(wid)\", \"ip\": \"%(addr)\", \"method\": \"%(method)\", 
\"path\": \"%(uri)\", \"status\": \"%(status)\", \"referer\": \"% 
(referer)\", \"response_time\": \"%(msecs)\", \"response_header_size\": \"% 
(hsize)\", \"response_body_size\": \"%(rsize)\"}", \
   "--endif" ]

0 个答案:

没有答案