From a9d4ea5790892cf2296b2cb1935d1fc5bd96d57b Mon Sep 17 00:00:00 2001 From: Pavel Date: Mon, 12 Aug 2024 22:27:12 +0300 Subject: [PATCH] update: dockerfile --- Dockerfile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe07abb..f51f5e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,16 @@ FROM python:3.11.6-slim -# set work directory WORKDIR /app -# set env variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 -RUN apt-get update -RUN apt-get install -y python3-dev gcc libc-dev libffi-dev -RUN apt-get -y install libpq-dev gcc +RUN apt-get update && \ + apt-get install -y python3-dev gcc libc-dev libffi-dev && \ + apt-get -y install libpq-dev gcc -# install dependencies COPY src/requirements.txt . -RUN pip install --upgrade pip -RUN pip install -r requirements.txt -# copy project +RUN pip install --upgrade pip && \ + pip install -r requirements.txt + COPY src/. . \ No newline at end of file