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