From 21dd8f24a8c8cca4d695c281bf097a7d59b168bd Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 4 May 2019 12:08:43 +0200 Subject: [PATCH] development docker container with pyhton executable --- Dockerfile | 12 ++++++++++++ run-python-docker.sh | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d80ea89 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.7.2-alpine3.9 + +RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories +RUN apk add --update --no-cache ca-certificates gcc g++ curl openblas-dev@community +RUN ln -s /usr/include/locale.h /usr/include/xlocale.h + +WORKDIR /usr/src/LEDServer +RUN pip3 install --upgrade pip +RUN pip3 install --no-cache-dir numpy +RUN pip3 install --no-cache-dir --upgrade ptvsd +# RUN pip3 install --no-cache-dir scipy # scipy is only required by the recorder application + diff --git a/run-python-docker.sh b/run-python-docker.sh index 8b49bae..d0327d2 100755 --- a/run-python-docker.sh +++ b/run-python-docker.sh @@ -2,11 +2,11 @@ docker run \ --rm \ -i \ - --network=host \ + --network="host" \ -v "$HOME":"$HOME":ro \ -u $(id -u) \ -w "$PWD" \ - $USER/ledserver:latest \ - python3.7 $@ + devel:latest \ + python3.7 -u $@ exit $? \ No newline at end of file