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