Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ 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
WORKDIR /code

# Copy project
COPY . /code/

# Set the default command (if your application has a main entry point)
# CMD ["python", "your_main_script.py"]
3 changes: 3 additions & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions requirements/production.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading