From 640a0688f420bd8aaf3923d0d1d7d1f643ef2be4 Mon Sep 17 00:00:00 2001 From: Stephen Tallowitz Date: Wed, 24 Apr 2019 20:08:34 +0200 Subject: [PATCH] Change Dockerfile structure for docker hub autobuild --- Dockerfile | 12 +----------- Dockerfile.ubuntu | 1 + Dockerfile.ubuntu.18.10 | 11 +++++++++++ 3 files changed, 13 insertions(+), 11 deletions(-) mode change 100644 => 120000 Dockerfile create mode 120000 Dockerfile.ubuntu create mode 100644 Dockerfile.ubuntu.18.10 diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 1514bfe..0000000 --- a/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM ubuntu:18.10 -ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - git \ - python3-pip \ - python3-setuptools \ - && rm -rf /var/lib/apt/lists/* -COPY requirements.txt . -RUN pip3 install --no-cache-dir -r requirements.txt -ENTRYPOINT ["pre-commit"] diff --git a/Dockerfile b/Dockerfile new file mode 120000 index 0000000..fd45f0f --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +Dockerfile.ubuntu \ No newline at end of file diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu new file mode 120000 index 0000000..846e446 --- /dev/null +++ b/Dockerfile.ubuntu @@ -0,0 +1 @@ +Dockerfile.ubuntu.18.10 \ No newline at end of file diff --git a/Dockerfile.ubuntu.18.10 b/Dockerfile.ubuntu.18.10 new file mode 100644 index 0000000..1514bfe --- /dev/null +++ b/Dockerfile.ubuntu.18.10 @@ -0,0 +1,11 @@ +FROM ubuntu:18.10 +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + git \ + python3-pip \ + python3-setuptools \ + && rm -rf /var/lib/apt/lists/* +COPY requirements.txt . +RUN pip3 install --no-cache-dir -r requirements.txt +ENTRYPOINT ["pre-commit"]