You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
951 B
31 lines
951 B
# Dockerfile for Python whisk docker action
|
|
FROM openwhisk/dockerskeleton
|
|
|
|
ENV FLASK_PROXY_PORT 8080
|
|
|
|
# Install our action's Python dependencies
|
|
ADD requirements.txt /action/requirements.txt
|
|
|
|
|
|
|
|
RUN apk --update add python3 py3-pip openssl ca-certificates py-openssl wget
|
|
RUN apk --update add --virtual build-dependencies libffi-dev openssl-dev python3-dev py3-pip build-base \
|
|
&& apk add jpeg-dev zlib-dev libjpeg \
|
|
&& pip install --upgrade pip
|
|
|
|
|
|
RUN cd /action; pip install -r requirements.txt
|
|
|
|
# Ensure source assets are not drawn from the cache
|
|
# after this date
|
|
ENV REFRESHED_AT 2016-09-05T13:59:39Z
|
|
# Add all source assets
|
|
ADD . /action
|
|
# Rename our executable Python action
|
|
ADD test.py /action/exec
|
|
ENV AWS_ACCESS_KEY_ID="AKIAYFB773UVZSOAVZN4"
|
|
ENV AWS_SECRET_ACCESS_KEY="OZPLMjN/2ao6OlSd5PpIkT5d7cWD9WAP/DXSZbEs"
|
|
ENV AWS_REGION="ap-south-1"
|
|
|
|
# Leave CMD as is for Openwhisk
|
|
CMD ["/bin/bash", "-c", "cd actionProxy && python3 -u actionproxy.py"] |