Skip to content

Commit 40ead44

Browse files
Updated Markdowm Gevent and Greenlet, add pip (#484)
I have Updated Markdowm Gevent and Greenlet inrequirement section, added pip in Dockerfile Co-authored-by: Chris Wedgwood <[email protected]>
1 parent ddfcb13 commit 40ead44

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ FROM python:3.7.2
55
ENV PYTHONDONTWRITEBYTECODE 1
66
ENV PYTHONUNBUFFERED 1
77

8-
9-
108
# Install dependencies
11-
COPY ./requirements /requirements
12-
RUN pip install --upgrade pip
13-
RUN pip install --no-cache-dir -r /requirements/production.txt \
9+
COPY requirements /requirements
10+
RUN pip install --upgrade pip \
11+
&& pip install --no-cache-dir -r /requirements/production.txt \
1412
&& rm -rf /requirements
1513

1614
# Set work directory
1715
WORKDIR /code
1816

1917
# Copy project
2018
COPY . /code/
19+
20+
# Set the default command (if your application has a main entry point)
21+
# CMD ["python", "your_main_script.py"]

requirements/base.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ whitenoise==6.1.0
2020
psycopg2-binary==2.9.3
2121
djangorestframework==3.12.4
2222
django-htmx==1.15.0
23+
gevent==22.10.2 # Updated version of gevent
24+
greenlet==3.0.3 # Updated version of greenlet
25+

requirements/production.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-r base.txt
22
certifi==2021.10.8
33
django-redis-cache==3.0.1
4-
gevent==22.10.2
5-
greenlet==3.0.3
4+
gevent==22.10.2 # Ensure this matches the updated version in base.txt
5+
greenlet==3.0.3 # Ensure this matches the updated version in base.txt
66
raven==6.10.0
77
redis==3.5.3
88
gunicorn==20.1.0

0 commit comments

Comments
 (0)