Simon Hrabos | 0456e25 | 2019-02-25 10:36:42 +0100 | [diff] [blame] | 1 | FROM alpine:3.9 |
| 2 | |
| 3 | RUN apk add --no-cache python3 && \ |
| 4 | python3 -m ensurepip && \ |
| 5 | rm -r /usr/lib/python*/ensurepip && \ |
| 6 | pip3 install --upgrade pip setuptools && \ |
| 7 | if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \ |
| 8 | if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \ |
| 9 | rm -r /root/.cache |
koblosz | 2ac270a | 2018-10-23 07:32:30 +0200 | [diff] [blame] | 10 | |
| 11 | COPY SO.py / |
| 12 | ADD ./test_data_assets/ / |
| 13 | |
| 14 | EXPOSE 8443 |
| 15 | |
| 16 | CMD [ "python", "./SO.py", "expected_so_requests.json", "expected_so_responses.json" ] |