forked from ibm-functions/runtime-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 1001 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.6-slim-jessie
ENV FLASK_PROXY_PORT 8080
RUN apt-get update && apt-get install -y \
gcc \
libc-dev \
libxslt-dev \
libxml2-dev \
libffi-dev \
libssl-dev \
zip \
unzip \
vim \
&& rm -rf /var/lib/apt/lists/*
RUN apt-cache search linux-headers-generic
COPY requirements.txt requirements.txt
RUN pip install --upgrade pip setuptools six && pip install --no-cache-dir -r requirements.txt
# create action working directory
RUN mkdir -p /action
RUN mkdir -p /actionProxy
ADD https://raw.githubusercontent.com/apache/incubator-openwhisk-runtime-docker/8b2e205c39d84ed5ede6b1b08cccf314a2b13105/core/actionProxy/actionproxy.py /actionProxy/actionproxy.py
RUN mkdir -p /pythonAction
ADD https://raw.githubusercontent.com/apache/incubator-openwhisk-runtime-python/3%401.0.3/core/pythonAction/pythonrunner.py /pythonAction/pythonrunner.py
CMD ["/bin/bash", "-c", "cd /pythonAction && python -u pythonrunner.py"]