From f853a1a89fa6e6e8e5b4b48de7363e8c06a18aef Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 12 Jun 2020 23:59:47 +0200 Subject: [PATCH] docker: fewer dependencies The Dockerfile needed a git dependency. Now i use the COPY command to get the same result. --- Dockerfile | 23 +++++++++++++++++++++++ docker/Dockerfile | 21 --------------------- 2 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 Dockerfile delete mode 100644 docker/Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3fc1e55 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM ubuntu:16.04 + +MAINTAINER Tiyn tiyn@martenkante.eu + +RUN apt-get update + +RUN apt-get upgrade -y + +RUN apt-get install python3 python3-pip -y + +COPY src /blog + +WORKDIR /blog + +RUN pip3 install -r requirements.txt + +VOLUME /blog/templates/entry + +EXPOSE 5000 + +ENTRYPOINT [ "python3" ] + +CMD [ "app.py" ] diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index e2d5798..0000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -FROM ubuntu - -MAINTAINER Tiyn tiyn@martenkante.eu - -RUN apt-get update - -RUN apt-get install python3 python3-pip git -y - -RUN git clone https://github.com/tiyn/tiyny-blog /blog - -WORKDIR /blog/src - -RUN pip3 install -r requirements.txt - -VOLUME /blog/src/templates/entry - -EXPOSE 5000 - -ENTRYPOINT [ "python3" ] - -CMD [ "app.py" ]