Skip to content

Commit

Permalink
Use requirements.txt for dependency installations (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomY-2 authored Nov 2, 2022
1 parent 5dafdb2 commit 21f30e4
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ RUN pip install pipenv --no-cache-dir
# Allows docker to cache installed dependencies between builds
COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
RUN pipenv install --deploy --system
COPY requirements.txt requirements.txt
RUN apt-get -y update && apt-get -y install libpq-dev gcc zlib1g
ENV LIBRARY_PATH=/lib:/usr/lib
RUN /usr/local/bin/python -m pip install --upgrade pip
RUN pip install importlib-metadata==4.13.0
RUN pip install -r requirements.txt

# Adds our application code to the image
COPY . code
Expand Down
44 changes: 44 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pytz==2018.9
django-configurations==2.1
gunicorn==19.9.0
newrelic==4.12.0.113
psycopg2-binary==2.7.7
dj-database-url==0.5.0
django-model-utils==3.1.2
django-unique-upload==0.2.1
djangorestframework==3.9.1
django-filter==2.1.0
ipdb==0.11
ipython==7.2.0
mkdocs==1.0.4
flake8==3.6.0
mock==2.0.0
django-nose==1.4.6
nose-progressive==1.5.2
coverage==4.5.2
django-storages==1.7.1
boto3==1.9.86
django==2.2
markdown==3.0.1
factory-boy==2.11.1
django-role-permissions==2.2.1
pillow==8.3.2
requests-oauthlib==1.2.0
requests==2.22.0
coreapi==2.3.3
pygments==2.4.0
drf-nested-routers==0.91
whitenoise==4.1.2
django-cors-headers==3.0.1
mypy==0.701
bleach==3.1.0
html5lib==1.0.1
python-frontmatter==0.4.5
django-taggit==1.1.0
django-taggit-serializer==0.1.7
archieml==0.3.4
drf-yasg==1.15.0
celery==4.3.0
redis==3.2.1
django-celery-results==1.0.4
django-redis==4.10.0

0 comments on commit 21f30e4

Please sign in to comment.