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"]