Files
qinling/runtimes/python2/Dockerfile
Lingxian Kong 786f83d182 Support Keystone session in python runtime
Keystone session can be used directly in user function to access
OpenStack services.

Include openstack clients in python requirements as well.

Add a python function example.

Implements: blueprint qinling-openstack-clients
Change-Id: I4798c404cb57bafe14049f57ba8db7c7125106c7
2017-07-03 01:16:40 +12:00

14 lines
272 B
Docker

FROM alpine:3.5
RUN apk update
RUN apk add --no-cache linux-headers python2 python2-dev build-base py2-pip py2-pbr
RUN pip install --upgrade pip
RUN rm -r /root/.cache
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
ENTRYPOINT ["python"]
CMD ["server.py"]