Skip to content

Commit

Permalink
dockerfile: combine RUN apt-get update with apt-get install in the sa…
Browse files Browse the repository at this point in the history
…me 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.
  • Loading branch information
garanews authored Dec 10, 2021
1 parent ea5ae25 commit e3f966b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3f966b

Please sign in to comment.