From 7b165ad5d2884eded9b752bd977aa5c49758405b Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 19 Jun 2023 11:24:03 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(Dockerfile):=20remove=20unne?= =?UTF-8?q?cessary=20files=20after=20installing=20dependencies=20?= =?UTF-8?q?=F0=9F=9A=80=20chore(pyproject.toml):=20rename=20dev-dependenci?= =?UTF-8?q?es=20to=20dev.dependencies=20The=20Dockerfile=20now=20removes?= =?UTF-8?q?=20unnecessary=20files=20after=20installing=20dependencies=20to?= =?UTF-8?q?=20reduce=20the=20image=20size.=20The=20pyproject.toml=20file?= =?UTF-8?q?=20now=20uses=20the=20correct=20naming=20convention=20for=20dev?= =?UTF-8?q?=20dependencies,=20which=20is=20dev.dependencies=20instead=20of?= =?UTF-8?q?=20dev-dependencies.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c21515d0..afe112a40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM python:3.10-slim -RUN apt-get update && apt-get install gcc g++ git make -y +RUN apt-get update && apt-get install gcc g++ git make -y && apt-get clean \ + && rm -rf /var/lib/apt/lists/* RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ diff --git a/pyproject.toml b/pyproject.toml index 8851a8231..366c09f73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,7 @@ cachetools = "^5.3.1" types-cachetools = "^5.3.0.5" -[tool.poetry.dev-dependencies] +[tool.poetry.dev.dependencies] black = "^23.1.0" ipykernel = "^6.21.2" mypy = "^1.1.1"