From e3f966b0115ba92467457b7c89043c1d037ca58d Mon Sep 17 00:00:00 2001 From: garanews Date: Fri, 10 Dec 2021 16:22:24 +0100 Subject: [PATCH] dockerfile: combine RUN apt-get update with apt-get install in the same RUN statement (#466) as best practice https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run in order to avoid error apt "E: Unable to locate package " on some system. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 931adf3d..d329911d 100755 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,9 @@ FROM python:3.8 RUN mkdir /opt/rtb ADD . /opt/rtb -RUN apt-get update -RUN apt-get install build-essential zlib1g-dev rustc -y -RUN apt-get install python3-pycurl sqlite3 libsqlite3-dev -y +RUN apt-get update && apt-get install -y \ +build-essential zlib1g-dev rustc \ +python3-pycurl sqlite3 libsqlite3-dev ADD ./setup/requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt --upgrade