Skip to content

Commit 7b165ad

Browse files
committed
šŸ› 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.
1 parent 899b0b1 commit 7b165ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: ā€ŽDockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM python:3.10-slim
22

3-
RUN apt-get update && apt-get install gcc g++ git make -y
3+
RUN apt-get update && apt-get install gcc g++ git make -y && apt-get clean \
4+
&& rm -rf /var/lib/apt/lists/*
45
RUN useradd -m -u 1000 user
56
USER user
67
ENV HOME=/home/user \

Diff for: ā€Žpyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ cachetools = "^5.3.1"
6666
types-cachetools = "^5.3.0.5"
6767

6868

69-
[tool.poetry.dev-dependencies]
69+
[tool.poetry.dev.dependencies]
7070
black = "^23.1.0"
7171
ipykernel = "^6.21.2"
7272
mypy = "^1.1.1"

0 commit comments

Comments
Ā (0)