reduce image size by using apt-get clean

Before:
```
REPOSITORY         TAG       IMAGE ID       CREATED         SIZE
sartography/node   latest    c9fde62c078f   8 seconds ago   649MB
```
After:
```
REPOSITORY         TAG       IMAGE ID       CREATED         SIZE
sartography/node   latest    ca14374b7d77   7 seconds ago   630MB
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-11-16 13:00:09 +01:00
parent b402c50f35
commit eba2f02795
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 12 additions and 12 deletions

View File

@ -3,8 +3,8 @@ FROM python:3.11.6-slim
WORKDIR /app WORKDIR /app
# pulled out: # pulled out:
# python3-dev \ # python3-dev
# postgresql-client \ # postgresql-client
RUN set -xe \ RUN set -xe \
&& pip install pipenv==2023.10.3 poetry==1.6.1 \ && pip install pipenv==2023.10.3 poetry==1.6.1 \
&& apt-get update -q \ && apt-get update -q \
@ -13,6 +13,6 @@ RUN set -xe \
libssl-dev \ libssl-dev \
curl \ curl \
git-core \ git-core \
gunicorn3 gunicorn3 \
&& rm -rf /var/lib/apt/lists/* \
WORKDIR /app /var/cache/apt/archives