Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 624 Bytes
# 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"]