From 0e96b44fd22c270cfa52cc2e6eeae9b3ff08b79f Mon Sep 17 00:00:00 2001 From: Johannes Date: Mon, 7 Dec 2020 17:57:04 +0100 Subject: [PATCH] Update Dockerfile for latest doorstop Version --- Dockerfile | 26 +++++++++++++++----------- dockerRun.sh | 2 +- requirements.txt | 2 ++ 3 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index 6aa1b22..fcd53c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,22 @@ -#Download base image ubuntu 16.10 -FROM ubuntu:16.10 +#Download base image ubuntu latest +FROM ubuntu:latest -# update Ubuntu Software repository -RUN apt-get update +ENV DEBIAN_FRONTEND=noninteractive -# installing command line tools -RUN apt-get -y install nano less git python3 python3-pip +WORKDIR /usr/src/doorstop -WORKDIR /app -RUN git clone https://github.com/jacebrowning/doorstop.git +COPY requirements.txt . -WORKDIR /app/doorstop -RUN python3 setup.py install +# Install required packages +RUN apt-get update \ + && apt-get install -y python3-pip python3-dev git \ + && cd /usr/local/bin \ + && ln -s /usr/bin/python3 python \ + && pip3 --no-cache-dir install --upgrade pip \ + && rm -rf /var/lib/apt/lists/* \ + && cd /usr/src/doorstop \ + && pip install --no-cache-dir -r requirements.txt -WORKDIR /data +WORKDIR /usr/src/doorstop/data ENTRYPOINT /bin/bash diff --git a/dockerRun.sh b/dockerRun.sh index 356cbf0..4c06f4c 100755 --- a/dockerRun.sh +++ b/dockerRun.sh @@ -1,3 +1,3 @@ docker run --name doorstop --rm \ - -v "$(pwd)/data:/data" \ + -v "$(pwd)/data:/usr/src/doorstop/data" \ -i -t doorstop_image diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..756bc9d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +## latest doorstop +doorstop \ No newline at end of file