Sign inSign up

openwhisk/dockerskeleton

Sponsored OSS

By Apache Software Foundation

Updated almost 2 years ago

Apache Openwhisk base image for creating Docker Actions.

Image
Languages & frameworks
Integration & delivery
11

1M+

Dockerfile
# Dockerfile for docker skeleton (useful for running blackbox binaries, scripts, or python actions).
FROM python:2.7.12-alpine

# Upgrade and install basic Python dependencies
RUN apk add --no-cache bash \
 && apk add --no-cache --virtual .build-deps \
        bzip2-dev \
        gcc \
        libc-dev \
  && pip install --no-cache-dir gevent==1.1.2 flask==0.11.1 \
  && apk del .build-deps

ENV FLASK_PROXY_PORT 8080

RUN mkdir -p /actionProxy
ADD actionproxy.py /actionProxy/

RUN mkdir -p /action
ADD stub.sh /action/exec
RUN chmod +x /action/exec

CMD ["/bin/bash", "-c", "cd actionProxy && python -u actionproxy.py"]