🐛 fix(Dockerfile): remove unnecessary files after installing dependencies

🚀 chore(pyproject.toml): rename dev-dependencies to dev.dependencies
The Dockerfile now removes unnecessary files after installing dependencies to reduce the image size. The pyproject.toml file now uses the correct naming convention for dev dependencies, which is dev.dependencies instead of dev-dependencies.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-19 11:24:03 -03:00
commit 7b165ad5d2
2 changed files with 3 additions and 2 deletions

View file

@ -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 \

View file

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