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 8193fd85..47d94772 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -20,3 +20,6 @@ whitenoise==6.1.0 psycopg2-binary==2.9.3 djangorestframework==3.12.4 django-htmx==1.15.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