From 96a28c7ef2cae09a91e3dd0f3d4e0680accd96fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Krawaczy=C5=84ski?= Date: Fri, 14 Oct 2022 17:44:13 +0200 Subject: [PATCH] One RUN layer less Every RUN command will create a new layer, and every new layer increases the size of the final image. --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 22790dd..bd60a92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,10 @@ FROM python:3.7-slim-bullseye as build WORKDIR /wheels -RUN apt-get update && apt-get install -y build-essential - COPY requirements.txt /opt/sherlock/ -RUN pip3 wheel -r /opt/sherlock/requirements.txt - +RUN apt-get update \ + && apt-get install -y build-essential \ + && pip3 wheel -r /opt/sherlock/requirements.txt FROM python:3.7-slim-bullseye WORKDIR /opt/sherlock