From 52f395c4b7d05b94b3326e94be28e866a1dbf393 Mon Sep 17 00:00:00 2001 From: lzwang Date: Tue, 4 Oct 2022 15:17:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(py310):=20=E5=A2=9E=E5=8A=A0=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=8C=85=E7=9A=84=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python3.10/Dockerfile | 9 +++++++++ python3.10/requirements.txt | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 python3.10/requirements.txt diff --git a/python3.10/Dockerfile b/python3.10/Dockerfile index 0ff5d92..28f038d 100644 --- a/python3.10/Dockerfile +++ b/python3.10/Dockerfile @@ -26,6 +26,15 @@ RUN apt-get update -y && apt-get upgrade -y \ && apt-get install apt-utils -y \ && rm -rf /var/lib/apt/lists/* +# python pip install dependencies +COPY ./python3.10/requirements.txt /project/requirements.txt + +# install pip packages +RUN pip install --no-cache-dir --upgrade pip \ + && pip install --no-cache-dir -r requirements.txt \ + && rm -rf /root/.cache \ + && rm -rf /tmp/* + # setup alias RUN echo "alias ll='ls -la'" >> /root/.bashrc diff --git a/python3.10/requirements.txt b/python3.10/requirements.txt new file mode 100644 index 0000000..9d417f3 --- /dev/null +++ b/python3.10/requirements.txt @@ -0,0 +1,8 @@ +flake8==4.0.1 +flake8-builtins +flake8-docstring-checker +flake8-html +flake8-import-order +pep8-naming +flake8-print +flake8-requirements