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
10
Dockerfile
10
Dockerfile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue