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:
parent
b402c50f35
commit
eba2f02795
24
Dockerfile
24
Dockerfile
|
@ -3,16 +3,16 @@ FROM python:3.11.6-slim
|
|||
WORKDIR /app
|
||||
|
||||
# pulled out:
|
||||
# python3-dev \
|
||||
# postgresql-client \
|
||||
# python3-dev
|
||||
# postgresql-client
|
||||
RUN set -xe \
|
||||
&& pip install pipenv==2023.10.3 poetry==1.6.1 \
|
||||
&& apt-get update -q \
|
||||
&& apt-get install -y -q \
|
||||
gcc \
|
||||
libssl-dev \
|
||||
curl \
|
||||
git-core \
|
||||
gunicorn3
|
||||
|
||||
WORKDIR /app
|
||||
&& pip install pipenv==2023.10.3 poetry==1.6.1 \
|
||||
&& apt-get update -q \
|
||||
&& apt-get install -y -q \
|
||||
gcc \
|
||||
libssl-dev \
|
||||
curl \
|
||||
git-core \
|
||||
gunicorn3 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
/var/cache/apt/archives
|
||||
|
|
Loading…
Reference in New Issue