09f5e6dc60
Usages of following resources are limited(for at least python runtime): - cpu - process number - file descriptor - file size Change-Id: I3bbd9e7a46a970eb0d9e99d1258b7b27407c0d90 Implements: blueprint qinling-container-resource-limitation
18 lines
478 B
Docker
18 lines
478 B
Docker
FROM phusion/baseimage:0.9.22
|
|
MAINTAINER anlin.kong@gmail.com
|
|
|
|
USER root
|
|
RUN useradd -Ms /bin/bash qinling
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install python-dev python-setuptools libffi-dev libxslt1-dev libxml2-dev libyaml-dev libssl-dev python-pip && \
|
|
pip install -U pip setuptools
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN pip install -r requirements.txt && \
|
|
chmod 0750 custom-entrypoint.sh && \
|
|
chown -R qinling:qinling /app
|
|
|
|
CMD ["/bin/bash", "custom-entrypoint.sh"]
|