diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu deleted file mode 120000 index 846e446..0000000 --- a/Dockerfile.ubuntu +++ /dev/null @@ -1 +0,0 @@ -Dockerfile.ubuntu.18.10 \ No newline at end of file diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu new file mode 100644 index 0000000..3d98bb0 --- /dev/null +++ b/Dockerfile.ubuntu @@ -0,0 +1,12 @@ +FROM ubuntu:20.04 +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 +RUN pre-commit sample-config > /.pre-commit-config.yaml +ENTRYPOINT ["pre-commit", "run", "--config", "/.pre-commit-config.yaml"] diff --git a/Dockerfile.ubuntu.18.10 b/Dockerfile.ubuntu.18.10 index a07912d..3d98bb0 100644 --- a/Dockerfile.ubuntu.18.10 +++ b/Dockerfile.ubuntu.18.10 @@ -1,4 +1,4 @@ -FROM ubuntu:18.10 +FROM ubuntu:20.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y --no-install-recommends \