From 742d7bfa308d6377a255aaddbd029a47184bec67 Mon Sep 17 00:00:00 2001 From: Charley Cunningham Date: Mon, 13 Nov 2023 15:02:05 -0500 Subject: [PATCH] Install pipenv via APT rather than pip/venv (#170) --- backend/Dockerfile | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 670c87b..8c5e16c 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -9,18 +9,8 @@ WORKDIR /app/ # Install dependencies RUN apt-get update \ - && apt-get install --no-install-recommends -y python3.11-dev python3-distutils libpq-dev gcc python3.11-venv \ - && python3.11 -m venv /opt/venv - -# Activate virtual environment -ENV PATH="/opt/venv/bin:$PATH" - -# Install pipenv using pip -RUN pip install --upgrade pip \ - && pip install pipenv - -# Clean up -RUN apt-get clean \ + && apt-get install --no-install-recommends -y python3.11-dev pipenv python3-distutils libpq-dev gcc \ + && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Copy config files @@ -33,7 +23,7 @@ COPY docker/supervisord.conf /etc/supervisor/ COPY Pipfile* /app/ # Install project dependencies -RUN pipenv install --system +RUN pipenv install --deploy --system # Copy project files COPY . /app/