From 2c78077a3cdb9ddeeed720292f5382e349ed1cac Mon Sep 17 00:00:00 2001 From: Kunal Nagar <162004527+Inquisitive-kunal@users.noreply.github.com> Date: Sun, 16 Jun 2024 16:49:38 +0530 Subject: [PATCH] Updated Markdowm Gevent and Greenlet, add pip I have Updated Markdowm Gevent and Greenlet inrequirement section, added pip in Dockerfile --- Dockerfile | 11 ++++++----- requirements/base.txt | 2 ++ requirements/production.txt | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a479ad9..6cc26d19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,10 @@ FROM python:3.7.2 ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 - - # Install dependencies -COPY ./requirements /requirements -RUN pip install --upgrade pip -RUN pip install --no-cache-dir -r /requirements/production.txt \ +COPY requirements /requirements +RUN pip install --upgrade pip \ + && pip install --no-cache-dir -r /requirements/production.txt \ && rm -rf /requirements # Set work directory @@ -18,3 +16,6 @@ WORKDIR /code # Copy project COPY . /code/ + +# Set the default command (if your application has a main entry point) +# CMD ["python", "your_main_script.py"] diff --git a/requirements/base.txt b/requirements/base.txt index 533697ff..c01b712f 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -20,3 +20,5 @@ whitenoise==6.1.0 psycopg2-binary==2.9.3 djangorestframework==3.12.4 django-htmx==1.11.0 +gevent==22.10.2 # Updated version of gevent +greenlet==3.0.3 # Updated version of greenlet diff --git a/requirements/production.txt b/requirements/production.txt index 0e58d760..2b8d0209 100644 --- a/requirements/production.txt +++ b/requirements/production.txt @@ -1,8 +1,8 @@ -r base.txt certifi==2021.10.8 django-redis-cache==3.0.1 -gevent==22.10.2 -greenlet==3.0.3 +gevent==22.10.2 # Ensure this matches the updated version in base.txt +greenlet==3.0.3 # Ensure this matches the updated version in base.txt raven==6.10.0 redis==3.5.3 gunicorn==20.1.0