Using the python web framework [Flask](http://flask.pocoo.org/). As a side effect, headers printed out from the `/headers` end point get capitalized.
9 lines
262 B
Docker
9 lines
262 B
Docker
# Docker Image running one (or multiple) webservers listening on all given ports from WEB_PORTS environment variable
|
|
|
|
FROM python:3
|
|
RUN pip install flask==0.12
|
|
COPY ./webserver.py /
|
|
COPY ./entrypoint.sh /
|
|
WORKDIR /opt
|
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
|
|